Name
list
Synopsis
p
.list(msgnum
=None)
Returns a pair
(
response
,messages
)
where response
is the response string and
messages
is a list of strings, each of two
words 'msgnum
bytes
', giving the
message number and the length in bytes of each message in the
mailbox. When msgnum
is not
None
, list messages
has
only one item, a string with two words:
msgnum
as requested, and the length
bytes
.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.