base64.b64encode(s, altchars=None) Encode the bytes-like object s using Base64
email.utils.formatdate(timeval=None, localtime=False, usegmt=False) Returns a date string as per
remove_flag(flag) Unset the flag(s) specified by flag without changing other flags. To remove more than one flag at
get_content(msg, *args, **kw) Look up a handler function based on the mimetype of msg (see next paragraph)
binascii.b2a_hqx(data) Perform hexbin4 binary-to-ASCII translation and return the resulting string. The argument should already
base64.decodestring(s) Decode the bytes-like object s, which must contain one
handle_defect(obj, defect) Handle a defect found on obj. When the email package calls this method, defect
fold(name, value) The email package calls this method with the name and value currently stored in the Message
lock() unlock() Three locking mechanisms are used—dot locking and, if available, the flock() and lockf()
binascii.a2b_hex(hexstr) binascii.unhexlify(hexstr) Return the binary data represented by the hexadecimal string
Page 6 of 44