email.utils.formataddr(pair, charset='utf-8') The inverse of parseaddr(), this takes a 2-tuple of the form (realname
write(s) Write the string s to the underlying file object, i.e. outfp passed to Generator‘s constructor
discard(key) Delete the message corresponding to key from the mailbox. If no such message
content_manager An object with at least two methods: get_content and set_content. When the get_content() or
set_unixfrom(unixfrom) Set the message’s envelope header to unixfrom, which should be a string.
binascii.b2a_hqx(data) Perform hexbin4 binary-to-ASCII translation and return the resulting string. The argument should already
lock() unlock() Three locking mechanisms are used—dot locking and, if available, the flock() and lockf()
flatten(msg, unixfrom=False, linesep=None) Print the textual representation of the message object structure rooted at msg
base64.b64encode(s, altchars=None) Encode the bytes-like object s using Base64
class json.JSONDecoder(object_hook=None, parse_float=None, parse_int=None, parse_constant=None, strict=True, object_pairs_hook=None) Simple
Page 2 of 44