Table of Contents
webbrowser
cgi
cgitb
wsgiref
urllib
urllib2
httplib
ftplib
poplib
imaplib
imaplib.IMAP4
imaplib.IMAP4_SSL
imaplib.IMAP4_stream
nntplib
smtplib
smtpd
telnetlib
uuid
urlparse
SocketServer
BaseHTTPServer
SimpleHTTPServer
CGIHTTPServer
cookielib
Cookie
xmlrpclib
SimpleXMLRPCServer
DocXMLRPCServer
IMAP4.
fetch
Fetch (parts of) messages.
(typ, [data, ...]) = <instance>.fetch(message_set, message_parts)
‘message_parts’ should be a string of selected parts enclosed in parentheses, eg: “(UID BODY[TEXT])”.
‘data’ are tuples of message part envelope and data.