binascii.b2a_uu(data) Convert binary data to a line of ASCII characters, the return value is the converted line, including a
email.message_from_file(fp, _class=email.message.Message, *, policy=policy.compat32) Return a message object structure tree
base64.b85encode(b, pad=False) Encode the bytes-like object b using base85 (as
iter_attachments() Return an iterator over all of the parts of the message that are not candidate “body” parts. That is, skip
class email.message.EmailMessage(policy=default) If policy is specified (it must be an instance of a
Source code: Lib/email/__init__
class email.policy.Policy(**kw) This is the abstract base class for all policy classes
class mailbox.BabylMessage(message=None) A message with Babyl-specific behaviors. Parameter message has the same meaning
get_content_maintype() Return the message’s main content type. This is the maintype part of the string
MimeTypes.guess_extension(type, strict=True) Similar to the guess_extension() function, using the tables stored
Page 17 of 44