Process a STAT command. Argument: - message_spec: article number or message id (if not specified, the current article is selected) Returns: - resp: server response if successful - art_num: the article number - message_id: the message id
(self, message_spec=None)
| 732 | return self._statparse(resp) |
| 733 | |
| 734 | def stat(self, message_spec=None): |
| 735 | """Process a STAT command. Argument: |
| 736 | - message_spec: article number or message id (if not specified, |
| 737 | the current article is selected) |
| 738 | Returns: |
| 739 | - resp: server response if successful |
| 740 | - art_num: the article number |
| 741 | - message_id: the message id |
| 742 | """ |
| 743 | if message_spec: |
| 744 | return self._statcmd('STAT {0}'.format(message_spec)) |
| 745 | else: |
| 746 | return self._statcmd('STAT') |
| 747 | |
| 748 | def next(self): |
| 749 | """Process a NEXT command. No arguments. Return as for STAT.""" |