email.headerregistry.Group

class email.headerregistry.Group(display_name=None, addresses=None) The class used to represent an address group. The general form of an address group is: display_name: [address-list]; As a convenience for processing lists of addresses that consist of a mixture of groups and single addresses, a Group may also be used to represent single addresses that are not part of a group by setting display_name to None and providing a list of the single address as addresses. display_name The display_

email.headerregistry.DateHeader.datetime

datetime If the header value can be recognized as a valid date of one form or another, this attribute will contain a datetime instance representing that date. If the timezone of the input date is specified as -0000 (indicating it is in UTC but contains no information about the source timezone), then datetime will be a naive datetime. If a specific timezone offset is found (including +0000), then datetime will contain an aware datetime that uses datetime.timezone to record the timezone offset

email.headerregistry.DateHeader

class email.headerregistry.DateHeader RFC 5322 specifies a very specific format for dates within email headers. The DateHeader parser recognizes that date format, as well as recognizing a number of variant forms that are sometimes found “in the wild”. This header type provides the following additional attributes: datetime If the header value can be recognized as a valid date of one form or another, this attribute will contain a datetime instance representing that date. If the timezone of

email.headerregistry.ContentTypeHeader.subtype

subtype

email.headerregistry.ContentTypeHeader.maintype

maintype

email.headerregistry.ContentTypeHeader.content_type

content_type The content type string, in the form maintype/subtype.

email.headerregistry.ContentTypeHeader

class email.headerregistry.ContentTypeHeader A ParameterizedMIMEHeader class that handles the Content-Type header. content_type The content type string, in the form maintype/subtype. maintype subtype

email.headerregistry.ContentTransferEncoding.cte

cte Valid values are 7bit, 8bit, base64, and quoted-printable. See RFC 2045 for more information.

email.headerregistry.ContentTransferEncoding

class email.headerregistry.ContentTransferEncoding Handles the Content-Transfer-Encoding header. cte Valid values are 7bit, 8bit, base64, and quoted-printable. See RFC 2045 for more information.

email.headerregistry.ContentDispositionHeader

class email.headerregistry.ContentDispositionHeader A ParameterizedMIMEHeader class that handles the Content-Disposition header. content-disposition inline and attachment are the only valid values in common use.