class mailbox.Message(message=None) A subclass of the
get_params(failobj=None, header='content-type', unquote=True) Return the message’s Content-Type
write(s) Write the string s to the underlying file object, i.e. outfp passed to Generator‘s constructor
remove_folder(folder) Delete the folder whose name is folder. If the folder contains any messages, a NotEmptyError
feed(data) Feed the FeedParser some more data. data should be a string containing one or more lines. The
email.utils.formataddr(pair, charset='utf-8') The inverse of parseaddr(), this takes a 2-tuple of the form (realname
set_content(*args, content_manager=None, **kw) Call the set_content method of the content_manager, passing
username The username portion of the address, with all quoting removed.
input_charset The initial character set specified. Common aliases are converted to their official email names (e.g
iterkeys() keys() Return an iterator over all keys if called as iterkeys() or return a list of keys
Page 8 of 44