Module Expr Str ImportFrom alias Import alias Import alias ImportFrom alias TryExcept body ImportFrom alias ImportFrom alias ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body If AttributeLoad NameLoad attr body Return Call AttributeLoad Call NameLoad keyword NameLoad attr Call NameLoad NameLoad NameLoad orelse Return Call AttributeLoad Call NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad Call NameLoad NameLoad keyword NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad Call NameLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str For NameStore Call AttributeLoad NameLoad attr body Delete SubscriptDel NameLoad Index NameLoad Return BinOpAdd Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Str NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return TupleLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr body If UnaryOpNot Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Delete SubscriptDel NameLoad Index Str Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str handlers ExceptHandler type NameLoad body If UnaryOpNot NameLoad body Raise Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If UnaryOpNot NameLoad body Assign NameStore NameLoad Assign NameStore Str orelse Assign NameStore SubscriptLoad NameLoad Slice Call AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad NameLoad Slice Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Return Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A Module defining :class:`Envelope` for holding message data along with
metadata.

 __future__ absolute_import N/A re N/A copy io BytesIO N/A N/A email.parser BytesParser email.generator BytesGenerator email.policy SMTP N/A N/A N/A ImportError N/A email.parser Parser email.generator Generator slimta.util pycompat N/A __all__ N/A Envelope N/A _HEADER_BOUNDARY N/A N/A re compile \r?\n\s*?\n N/A _LINE_BREAK N/A N/A re compile \r?\n Envelope N/A object N/A N/A Class containing message data and metadata. This class acts like an
    envelope with the sending address, recipient(s), and the actual message.

    :param sender: The address that sent the message.
    :param recipients: List of addresses to receive the message.
    :param headers: The message headers.
    :type headers: :class:`email.message.Message`
    :param message: String containing the message contents after the headers.
    :type message: :py:obj:`bytes`

     __init__ N/A N/A self sender recipients headers message N/A None None None None N/A N/A N/A self sender sender N/A N/A self recipients N/A recipients N/A N/A N/A self headers headers N/A N/A self message message N/A N/A self client N/A N/A N/A self receiver None N/A N/A self timestamp None N/A _parse_data N/A N/A self data N/A extra N/A N/A N/A pycompat PY3 N/A N/A N/A N/A N/A BytesParser policy SMTP parse N/A BytesIO data extra N/A N/A N/A N/A N/A Parser parse N/A BytesIO data extra N/A _msg_generator N/A N/A self msg N/A N/A N/A outfp N/A BytesIO N/A N/A pycompat PY3 N/A N/A N/A N/A N/A BytesGenerator outfp policy SMTP flatten msg False N/A N/A N/A outfp getvalue N/A N/A N/A N/A N/A Generator outfp flatten msg False N/A N/A N/A re sub _LINE_BREAK N/A N/A outfp getvalue N/A _merge_payloads N/A N/A self headers payload N/A N/A N/A N/A N/A headers get_payload N/A N/A new_msg N/A N/A copy deepcopy headers N/A N/A N/A headers set_payload N/A header N/A N/A new_msg keys N/A N/A N/A new_msg N/A header N/A N/A N/A N/A N/A N/A self _msg_generator new_msg lstrip payload N/A N/A payload N/A prepend_header N/A N/A self name value N/A N/A N/A This method allows prepending a header to the message. The
        :attr:`.headers` object does not directly support header prepending
        because the Python implementation only provides appending.

         N/A N/A N/A N/A N/A self headers _headers insert 0 N/A name value N/A copy N/A N/A self new_rcpts N/A None N/A N/A Builds and returns an exact copy if the current object. This method
        uses a deep-copying so internal datastructures are not shared.

        :param new_rcpts: If given, overwrite the :attr:`.recipients` list with
                          this value inthe new object.
        :returns: An exact, deep copy of the current object.

         N/A new_env N/A N/A copy deepcopy self N/A new_rcpts N/A N/A N/A new_env recipients new_rcpts N/A new_env N/A flatten N/A N/A self N/A N/A N/A Produces two strings representing the headers and message body.

        :returns: Tuple of two bytestrings: ``(header_data, message_data)``

         N/A header_data N/A N/A self _msg_generator N/A self headers N/A N/A header_data N/A self message N/A _encode_parts N/A N/A self encoder N/A N/A N/A N/A header_data msg_data N/A N/A self flatten N/A msg N/A N/A self _parse_data N/A header_data msg_data N/A part N/A N/A msg walk N/A N/A N/A N/A N/A part is_multipart N/A N/A payload N/A N/A part get_payload N/A N/A N/A N/A N/A payload encode ascii N/A N/A N/A UnicodeError N/A N/A N/A part N/A Content-Transfer-Encoding N/A N/A encoder part N/A N/A N/A self parse_msg msg N/A encode_7bit N/A N/A self encoder N/A None N/A N/A .. versionadded:: 0.3.12

        Forces the message into 7-bit encoding such that it can be sent to SMTP
        servers that do not support the ``8BITMIME`` extension.

        If the ``encoder`` function is not given, this function is relatively
        cheap and will just check the message body for 8-bit characters
        (raising :py:exc:`UnicodeDecodeError` if any are found).  Otherwise,
        this method can be very expensive. It will parse the entire message
        into MIME parts in order to encode parts that are not 7-bit.

        :param encoder: Optional function from :mod:`email.encoders` used to
                        encode MIME parts that are not 7-bit.
        :raises: UnicodeDecodeError

         N/A N/A N/A N/A N/A N/A self message decode ascii N/A N/A N/A UnicodeDecodeError N/A N/A N/A encoder N/A N/A N/A N/A N/A self _encode_parts encoder N/A parse_msg N/A N/A self msg N/A N/A N/A Parses the given :class:`~email.message.Message` to
        populate the :attr:`headers` and :attr:`message` attributes.

        :param data: The complete message, headers and message body.
        :type data: :class:`~email.message.Message`

         N/A N/A N/A self parse N/A N/A self _msg_generator msg N/A parse N/A N/A self data N/A N/A N/A Parses the given string to populate the :attr:`headers` and
        :attr:`message` attributes.

        :param data: The complete message, headers and message body.
        :type data: :py:obj:`bytes`

         N/A match N/A N/A re search _HEADER_BOUNDARY data N/A N/A match N/A N/A header_data data N/A payload N/A N/A header_data N/A data N/A N/A N/A match end 0 N/A payload N/A data N/A N/A N/A match end 0 N/A N/A self headers N/A N/A self _parse_data header_data True N/A N/A self message N/A N/A self _merge_payloads N/A self headers payload N/A __repr__ N/A N/A self N/A N/A N/A template <Envelope at {0}, sender={1!r}> N/A N/A N/A template format N/A hex N/A id self N/A self sender N/A N/A