Commit 70a186c4 authored by Guido van Rossum's avatar Guido van Rossum

Fix suggested by movits@lockstar.com (plus doc string by myself)

for LIST command with msg argument.
parent f1303c8f
...@@ -196,14 +196,17 @@ class POP3: ...@@ -196,14 +196,17 @@ class POP3:
return (numMessages, sizeMessages) return (numMessages, sizeMessages)
def list(self, which=None): def list(self, msg=None):
"""Request listing, return result. """Request listing, return result.
Result is in form ['response', ['mesg_num octets', ...]].
Unsure what the optional 'msg' arg does. Result without a msg argument is in form
['response', ['mesg_num octets', ...]].
Result when a msg argument is given is a single response:
the "scan listing" for that message.
""" """
if which: if which:
return self._longcmd('LIST %s' % which) return self._shortcmd('LIST %s' % which)
return self._longcmd('LIST') return self._longcmd('LIST')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment