binascii.a2b_hex(hexstr) binascii.unhexlify(hexstr) Return the binary data represented by the hexadecimal string
register_defect(obj, defect) Register a defect on obj. In the email package, defect will always be
header_encode(string) Header-encode the string string. The type of encoding (base64
mangle_from_ If
get_file(key) Using the file after calling flush() or close() on the mbox instance may
email.utils.formatdate(timeval=None, localtime=False, usegmt=False) Returns a date string as per
get_folder(folder) Return an MH instance representing the folder whose name is folder. A NoSuchMailboxError
close() MH instances do not keep any open files, so this method is equivalent to unlock().
set_unixfrom(unixfrom) Set the message’s envelope header to unixfrom, which should be a string.
header_fetch_parse(name, value) If the value contains binary data, it is converted into a
Page 3 of 44