datetime If the header value can be recognized as a valid date of one form or another, this attribute will contain a
fold_binary(name, value) The same as fold(), except that the returned value should be a bytes object rather than
Source code: Lib/email/__init__
class mailbox.BabylMessage(message=None) A message with Babyl-specific behaviors. Parameter message has the same meaning
fold(name, value) Headers are folded using the
class email.headerregistry.ParameterizedMIMEHeader MOME headers all start with the prefix ‘Content-‘. Each specific header has
binascii.unhexlify(hexstr) Return the binary data represented by the hexadecimal string hexstr. This function is the
add_folder(folder) Create a folder whose name is folder and return an MH instance representing it.
iter_attachments() Return an iterator over all of the parts of the message that are not candidate “body” parts. That is, skip
base64.encode(input, output) Encode the contents of the binary input file and write the resulting base64 encoded data
Page 14 of 44