Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c86b7c6 commit f6ae743Copy full SHA for f6ae743
1 file changed
Lib/poplib.py
@@ -196,14 +196,17 @@ def stat(self):
196
return (numMessages, sizeMessages)
197
198
199
- def list(self, which=None):
+ def list(self, msg=None):
200
"""Request listing, return result.
201
- Result is in form ['response', ['mesg_num octets', ...]].
202
203
- Unsure what the optional 'msg' arg does.
+ Result without a msg argument is in form
+ ['response', ['mesg_num octets', ...]].
204
+
205
+ Result when a msg argument is given is a single response:
206
+ the "scan listing" for that message.
207
"""
208
if which:
- return self._longcmd('LIST %s' % which)
209
+ return self._shortcmd('LIST %s' % which)
210
return self._longcmd('LIST')
211
212
0 commit comments