email.headerregistry.ContentTransferEncoding.cte

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

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.BaseHeader.defects

defects A tuple of HeaderDefect instances reporting any RFC compliance problems found during parsing. The email package tries to be complete about detecting compliance issues. See the errors module for a discussion of the types of defects that may be reported.

email.headerregistry.BaseHeader

class email.headerregistry.BaseHeader(name, value) name and value are passed to BaseHeader from the header_factory call. The string value of any header object is the value fully decoded to unicode. This base class defines the following read-only properties: name The name of the header (the portion of the field before the ‘:’). This is exactly the value passed in the header_factory call for name; that is, case is preserved. defects A tuple of HeaderDefect instances reporting any RFC

email.headerregistry.BaseHeader.fold()

fold(*, policy) Return a string containing linesep characters as required to correctly fold the header according to policy. A cte_type of 8bit will be treated as if it were 7bit, since strings may not contain binary data.

email.headerregistry.AddressHeader.addresses

addresses A tuple of Address objects encoding all of the individual addresses from the header value. If the header value contains any groups, the individual addresses from the group are included in the list at the point where the group occurs in the value (that is, the list of addresses is “flattened” into a one dimensional list).

email.headerregistry.AddressHeader.groups

groups A tuple of Group objects encoding the addresses and groups found in the header value. Addresses that are not part of a group are represented in this list as single-address Groups whose display_name is None.

email.headerregistry.Address.username

username The username portion of the address, with all quoting removed.

email.headerregistry.Address.display_name

display_name The display name portion of the address, if any, with all quoting removed. If the address does not have a display name, this attribute will be an empty string.

email.headerregistry.Address.domain

domain The domain portion of the address.