
    	h?                     ,   d Z ddlZddlZddlZddlZddlmZmZm	Z	m
Z
mZmZmZmZmZ ddlmZmZmZ ddlmZmZmZmZmZ ddlmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z& ddl'm(Z( dd	l)m*Z* dd
l+m,Z, ddlm-Z-m.Z.m/Z/m0Z0 dZ1dZ2dZ3dZ4dZ5 G d d          Z6dS )zA
Main SMTP client class.

Implements SMTP, ESMTP & Auth methods.
    N)	AnyDictIterableListOptionalSequenceTupleTypeUnion   )auth_crammd5_verifyauth_login_encodeauth_plain_encode)extract_recipientsextract_senderflatten_messageparse_addressquote_address)SMTPAuthenticationErrorSMTPConnectErrorSMTPConnectTimeoutErrorSMTPExceptionSMTPHeloErrorSMTPNotSupportedSMTPRecipientRefusedSMTPRecipientsRefusedSMTPResponseExceptionSMTPSenderRefusedSMTPServerDisconnectedSMTPTimeoutErrorSMTPConnectResponseError)parse_esmtp_extensions)SMTPProtocol)SMTPResponse)Default
SMTPStatusSocketPathType_default)SMTP	SMTP_PORTSMTP_TLS_PORTSMTP_STARTTLS_PORT   i  iK  <   c            $          e Zd ZU dZdZeedf         ed<   ddddddedddddddddd	d
e	e         de	e
         de	eeef                  de	eeef                  de	e         de	eee
f                  de	e         dede	e         dede	e         de	e         de	ej                 de	e         de	e         de	ej                 ddf"dZdddZdee         dededdfd Zedefd!            Zedefd"            Zedeedf         fd#            Zej        d$eddfd%            Zedefd&            Zede e         fd'            Z!e"e"e"e"e"e"de"de"e"e"e"e"e"fd
e	eee#f                  de	ee
e#f                  de	eeee#f                  de	eeee#f                  de	eee#f                  de	eeee
f         e#f                  de	e         de	eee#f                  de	e         de	eee#f                  de	eee#f                  de	eej        e#f                  de	eee#f                  de	eee#f                  de	eej        e#f                  ddf d(Z$ded)Z%de
fd*Z&e"e"e"e"e"e"e"de"de"e"e"e"e"e"d	d
e	eee#f                  de	ee
e#f                  de	eeee#f                  de	eeee#f                  de	eee#f                  de	eeee
f         e#f                  de	eee#f                  de	e         de	eee#f                  de	e         de	eee#f                  de	eee#f                  de	eej        e#f                  de	eee#f                  de	eee#f                  de	eej        e#f                  def"d+Z'de	e         defd,Z(dfd/Z)ded0Z*ded1Z+e"d2d3ede	eee#f                  defd4Z,dej        fd5Z-ded6Z.d7edefd8Z/de"d9d
e	e         de	eee#f                  defd:Z0e"d2de	eee#f                  defd;Z1e"d2de	eee#f                  defd<Z2e"d2de	eee#f                  defd=Z3de"d>d?ed@e	e4e                  de	eee#f                  defdAZ5de"d>d?ed@e	e4e                  de	eee#f                  defdBZ6e"d2de	eee#f                  defdCZ7ddDe"dEdFed@e	e4e                  dGede	eee#f                  def
dHZ8ddDe"dEdIed@e	e4e                  dGede	eee#f                  def
dJZ9e"d2dKeeef         de	eee#f                  defdLZ:de"d9d
e	e         de	eee#f                  defdMZ;dNedefdOZ<dedPZ=dedQZ>dde"e"e"e"e"dRdSe	e         de	e         de	eee#f                  de	eee#f                  de	eee#f                  de	eej        e#f                  de	eee#f                  defdTZ?e"fde	eee#f                  deeef         deeef         defdUZ@e"d2deeef         deeef         de	eee#f                  defdVZAe"d2deeef         deeef         de	eee#f                  defdWZBe"d2deeef         deeef         de	eee#f                  defdXZCdde"dYdFedZeeeDe         f         dKeeef         d[e	e4e                  d\e	e4e                  de	eee#f                  deeEeef         ef         fd]ZFdDe"fdZeDe         d@e4e         dGede	eee#f                  deEeef         f
d^ZGdddde"d_dKeeHjI        jJ        eHjI        jK        f         dFe	e         dZe	eeeDe         f                  d[e	e4e                  d\e	e4e                  de	eee#f                  deeEeef         ef         fd`ZLd3edaedeeEeef         ef         fdbZMd3edaedeeEeef         ef         fdcZNdS )gr)   a  
    Main SMTP client class.

    Basic usage:

        >>> event_loop = asyncio.get_event_loop()
        >>> smtp = aiosmtplib.SMTP(hostname="127.0.0.1", port=1025)
        >>> event_loop.run_until_complete(smtp.connect())
        (220, ...)
        >>> sender = "root@localhost"
        >>> recipients = ["somebody@localhost"]
        >>> message = "Hello World"
        >>> send = smtp.sendmail(sender, recipients, "Hello World")
        >>> event_loop.run_until_complete(send)
        ({}, 'OK')

    Keyword arguments can be provided either on :meth:`__init__` or when
    calling the :meth:`connect` method. Note that in both cases these options,
    except for ``timeout``, are saved for later use; subsequent calls to
    :meth:`connect` will use the same options, unless new ones are provided.
    ``timeout`` is saved for later use when provided on :meth:`__init__`, but
    not when calling the :meth:`connect` method.
    )zcram-md5plainlogin.AUTH_METHODS	localhostNFT)hostnameportusernamepasswordlocal_hostnamesource_addresstimeoutuse_tls	start_tlsvalidate_certsclient_cert
client_keytls_contextcert_bundlesocket_pathsockr4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   returnc                   d| _         d| _        || _        || _        || _        || _        || _        || _        || _        |	| _	        |
| _
        || _        || _        || _        || _        || _        || _        || _        d| _        d| _        d| _        d| _        i | _        d| _        g | _        d| _        |                                  dS )aO	  
        :keyword hostname:  Server name (or IP) to connect to. Defaults to "localhost".
        :keyword port: Server port. Defaults ``465`` if ``use_tls`` is ``True``,
            ``587`` if ``start_tls`` is ``True``, or ``25`` otherwise.
        :keyword username:  Username to login as after connect.
        :keyword password:  Password for login after connect.
        :keyword local_hostname: The hostname of the client.  If specified, used as the
            FQDN of the local host in the HELO/EHLO command. Otherwise, the result of
            :func:`socket.getfqdn`. **Note that getfqdn will block the event loop.**
        :keyword source_address: Takes a 2-tuple (host, port) for the socket to bind to
            as its source address before connecting. If the host is '' and port is 0,
            the OS default behavior will be used.
        :keyword timeout: Default timeout value for the connection, in seconds.
            Defaults to 60.
        :keyword use_tls: If True, make the initial connection to the server
            over TLS/SSL. Mutually exclusive with ``start_tls``; if the server uses
            STARTTLS, ``use_tls`` should be ``False``.
        :keyword start_tls: Flag to initiate a STARTTLS upgrade on connect.
            If ``None`` (the default), upgrade will be initiated if supported by the
            server.
            If ``True``, and upgrade will be initiated regardless of server support.
            If ``False``, no upgrade will occur.
            Mutually exclusive with ``use_tls``.
        :keyword validate_certs: Determines if server certificates are
            validated. Defaults to ``True``.
        :keyword client_cert: Path to client side certificate, for TLS.
        :keyword client_key: Path to client side key, for TLS.
        :keyword tls_context: An existing :py:class:`ssl.SSLContext`, for TLS.
            Mutually exclusive with ``client_cert``/``client_key``.
        :keyword cert_bundle: Path to certificate bundle, for TLS verification.
        :keyword socket_path: Path to a Unix domain socket. Not compatible with
            hostname or port. Accepts str, bytes, or a pathlike object.
        :keyword sock: An existing, connected socket object. If given, none of
            hostname, port, or socket_path should be provided.

        :raises ValueError: mutually exclusive options provided
        NF)protocol	transportr4   r5   _login_username_login_password_local_hostnamer:   r;   _start_tls_on_connectr=   r>   r?   r@   rA   rB   rC   r9   loop_connect_locklast_helo_response_last_ehlo_responseesmtp_extensionssupports_esmtpserver_auth_methods_sendmail_lock_validate_config)selfr4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   s                    \/var/www/html/web-builder-api.evdpl.com/venv/lib/python3.11/site-packages/aiosmtplib/smtp.py__init__zSMTP.__init__Q   s    r 15:> !	''-%.",&$&&&	,9=	59:>;? 02#.0 6:    c                 L   K   | j         s|                                  d {V  | S N)is_connectedconnectrU   s    rV   
__aenter__zSMTP.__aenter__   s6        	!,,..       rX   exc_typeexc	tracebackc                    K   t          |t          t          f          r|                                  d S 	 |                                  d {V  d S # t
          t          t          f$ r Y d S w xY wrZ   )
isinstanceConnectionErrorTimeoutErrorclosequitr   r   r    )rU   r_   r`   ra   s       rV   	__aexit__zSMTP.__aexit__   s       cO\:;; 	JJLLLF	))++&(=?OP 	 	 	DD	s   A A-,A-c                 F    t          | j        duo| j        j                  S )z<
        Check if our transport is still connected.
        N)boolrF   r[   r]   s    rV   r[   zSMTP.is_connected   s#    
 DM-L$-2LMMMrX   c                 N    | j         t          j                    | _         | j         S )z
        Get the system hostname to be sent to the SMTP server.
        Simply caches the result of :func:`socket.getfqdn`.
        )rJ   socketgetfqdnr]   s    rV   r8   zSMTP.local_hostname   s&     '#)>#3#3D ##rX   c                     | j         S rZ   )rO   r]   s    rV   last_ehlo_responsezSMTP.last_ehlo_response   s    ''rX   responsec                 l    t          |j                  \  }}|| _        || _        || _        d| _        dS )z{
        When setting the last EHLO response, parse the message for supported
        extensions and auth methods.
        TN)r"   messagerO   rP   rR   rQ   )rU   rp   
extensionsauth_methodss       rV   ro   zSMTP.last_ehlo_response   s?     $:(:J#K#K 
L#+  *#/ "rX   c                 &    | j         du o| j        du S )zX
        Check if we've already received a response to an EHLO or HELO command.
        N)ro   rN   r]   s    rV   is_ehlo_or_helo_neededzSMTP.is_ehlo_or_helo_needed   s    
 &$.R43Jd3RRrX   c                 *      fd j         D             S )zN
        Get all AUTH methods supported by the both server and by us.
        c                 &    g | ]}|j         v |S  )rR   ).0authrU   s     rV   
<listcomp>z/SMTP.supported_auth_methods.<locals>.<listcomp>   s&    WWWdd>V6V6V6V6V6VrX   )r2   r]   s   `rV   supported_auth_methodszSMTP.supported_auth_methods   s#    
 XWWW!2WWWWrX   c                    |t           ur|| _        ||| _        |t           ur|| _        |	|	| _        |t           ur|| _        |t           ur|| _        |t           ur|| _        |t           ur|| _        |t           ur|| _	        |
t           ur|
| _
        |t           ur|| _        |t           ur|| _        |t           ur|| _        |t           ur|| _        |t           ur	|| _        dS dS )znUpdate our configuration from the kwargs provided.

        This method can be called multiple times.
        N)r(   r4   r;   rK   r=   r5   rH   rI   rJ   r9   r>   r?   r@   rA   rB   rC   )rU   r4   r5   r6   r7   r8   r9   r;   r<   r=   r>   r?   r@   rA   rB   rC   s                   rV   _update_settings_from_kwargsz!SMTP._update_settings_from_kwargs   s   , 8##$DM"DLH$$)2D&%"0DxDI8###+D 8###+D ))#1D ))"0Dh&&*DX%%(DOh&&*Dh&&*Dh&&*DxDIII  rX   c                    | j         r| j        rt          d          | j        | j        t          d          | j        0t          | j        | j        | j	        g          rt          d          | j	        *t          | j        | j        g          rt          d          | j
        !d| j
        v s	d| j
        v rt          d          | j        !d| j        v s	d| j        v rt          d          d S d S )	Nz5The start_tls and use_tls options are not compatible.z:Either a TLS context or a certificate/key must be providedzFThe socket option is not compatible with hostname, port or socket_pathz;The socket_path option is not compatible with hostname/port
z?The local_hostname param contains prohibited newline charactersz9The hostname param contains prohibited newline characters)rK   r;   
ValueErrorr@   r>   rC   anyr4   r5   rB   rJ   r]   s    rV   rT   zSMTP._validate_config"  s>   % 	V$, 	VTUUU'D,<,HL   9 S$-DDT)U%V%V X   'C	0J,K,K'M   +D(((DD4H,H,HQ   =$DM!!TT]%:%:K   %$%:%:rX   c                 H    | j         rt          S | j        rt          S t          S )zP
        Return an appropriate default port, based on options selected.
        )r;   r+   rK   r,   r*   r]   s    rV   _get_default_portzSMTP._get_default_portC  s+     < 	&  ' 	&%%rX   c                  K   |                      ||||||	|
||||||||           |                                  t          j                    | _        | j        t          j                    | _        | j                                         d{V  | j        '| j	         | j
        |                                 | _        	 |                     |t          u r| j        n|           d{V }n(# t          $ r}|                                  |d}~ww xY w|                                  d{V  |                                  d{V  |S )a	  
        Initialize a connection to the server. Options provided to
        :meth:`.connect` take precedence over those used to initialize the
        class.

        :keyword hostname:  Server name (or IP) to connect to. Defaults to "localhost".
        :keyword port: Server port. Defaults ``465`` if ``use_tls`` is ``True``,
            ``587`` if ``start_tls`` is ``True``, or ``25`` otherwise.
        :keyword username:  Username to login as after connect.
        :keyword password:  Password for login after connect.
        :keyword local_hostname: The hostname of the client.  If specified, used as the
            FQDN of the local host in the HELO/EHLO command. Otherwise, the result of
            :func:`socket.getfqdn`. **Note that getfqdn will block the event loop.**
        :keyword source_address: Takes a 2-tuple (host, port) for the socket to bind to
            as its source address before connecting. If the host is '' and port is 0,
            the OS default behavior will be used.
        :keyword timeout: Default timeout value for the connection, in seconds.
            Defaults to 60.
        :keyword use_tls: If True, make the initial connection to the server
            over TLS/SSL. Mutually exclusive with ``start_tls``; if the server uses
            STARTTLS, ``use_tls`` should be ``False``.
        :keyword start_tls: Flag to initiate a STARTTLS upgrade on connect.
            If ``None`` (the default), upgrade will be initiated if supported by the
            server.
            If ``True``, and upgrade will be initiated regardless of server support.
            If ``False``, no upgrade will occur.
            Mutually exclusive with ``use_tls``.
        :keyword validate_certs: Determines if server certificates are
            validated. Defaults to ``True``.
        :keyword client_cert: Path to client side certificate, for TLS.
        :keyword client_key: Path to client side key, for TLS.
        :keyword tls_context: An existing :py:class:`ssl.SSLContext`, for TLS.
            Mutually exclusive with ``client_cert``/``client_key``.
        :keyword cert_bundle: Path to certificate bundle, for TLS verification.
        :keyword socket_path: Path to a Unix domain socket. Not compatible with
            hostname or port. Accepts str, bytes, or a pathlike object.
        :keyword sock: An existing, connected socket object. If given, none of
            hostname, port, or socket_path should be provided.

        :raises ValueError: mutually exclusive options provided
        )r4   r5   r8   r9   r;   r<   r=   r>   r?   r@   rA   rB   rC   r6   r7   Nr:   )r   rT   asyncioget_running_looprL   rM   Lockacquirer5   rC   rB   r   _create_connectionr(   r:   	Exceptionrf   _maybe_start_tls_on_connect_maybe_login_on_connect)rU   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rp   r`   s                      rV   r\   zSMTP.connectN  s     z 	)))))#!### 	* 	
 	
 	
" 	,..	%!(D ((********* 9!2t7G7O..00DI	!44(/8(;(; 5        HH  	 	 	JJLLLI	 ..000000000**,,,,,,,,,s    ,C- -
D7DDc           	        	K   | j         t          d          t          | j                   	d }d }| j        r|                                 }|}| j        '| j                             	fd| j        ||          }n| j        '| j                             	fd| j        ||          }n^| j	        t          d          | j
        t          d          | j                             	fd	| j	        | j
        ||| j        
          }	 t          j        ||           d {V \  }}nn# t          t          j        f$ r%}t          d| j	         d| j
                   |d }~wt           $ r(}t#          d| j	         d| j
         d|           |d }~ww xY w	| _        || _        	 	                    |           d {V }nR# t*          $ r(}t#          d| j	         d| j
         d|           |d }~wt,          $ r}t          d          |d }~ww xY w|j        t0          j        k    rt5          |j        |j                  |S )NzNo event loop set)rL   c                       S rZ   ry   rF   s   rV   <lambda>z)SMTP._create_connection.<locals>.<lambda>       rX   )rC   sslssl_handshake_timeoutc                       S rZ   ry   r   s   rV   r   z)SMTP._create_connection.<locals>.<lambda>  r   rX   )pathr   r   z2No hostname provided; default should have been setz.No port provided; default should have been setc                       S rZ   ry   r   s   rV   r   z)SMTP._create_connection.<locals>.<lambda>  r   rX   )hostr5   r   r   
local_addrr   zTimed out connecting to z	 on port zError connecting to z: z*Timed out waiting for server ready message)rL   RuntimeErrorr#   r;   _get_tls_contextrC   create_connectionrB   create_unix_connectionr4   r5   r9   r   wait_forre   r   OSErrorr   rF   rG   read_responser   r    coder&   readyr!   rr   )
rU   r:   r@   r   connect_cororG   _r`   rp   rF   s
            @rV   r   zSMTP._create_connection  s     92333TY///0415< 	,//11K$+!9 966    Y&;	 7  LL )9;;    %&;	 <  LL }$"#WXXXy "#STTT966    ]Y&;. 7  L		!(!1,!P!P!PPPPPPPLIqqg23 	 	 	)N4=NN49NN   	 	 	"Qt}QQtyQQCQQ 	
 !"		%33G3DDDDDDDDHH% 	 	 	"Qt}QQtyQQCQQ    	 	 	)< 	
 =J,,,*8=(:JKKKsH   D+ +F E!!F.#FF(G 
H#G22H?HHwaiterasyncio.Future[None]c                 .    |                                   d S rZ   )rf   )rU   r   s     rV   _connection_lostzSMTP._connection_lost  s    

rX   c                 D  K   | j         du r|                                  d{V  dS | j         k|                     d          du}| j        sO|sO|                                  d{V  |                     d          r"|                                  d{V  dS dS dS dS dS )zK
        Depending on config, upgrade the connection via STARTTLS.
        TN
sslcontextstarttls)rK   r   get_transport_infor;   _ehlo_or_helo_if_neededsupports_extension)rU   already_using_tlss     rV   r   z SMTP._maybe_start_tls_on_connect  s       %----//!!!!!!!!! '/ $ 7 7 E ET QL *$5 *22444444444**:66 *--//))))))))) 0/* * * ** *rX   c                 ~   K   | j         3| j        | j        nd}|                     | j         |           d{V  dS dS )z>
        Depending on config, login after connecting.
        N )rH   rI   r1   )rU   login_passwords     rV   r   zSMTP._maybe_login_on_connect  sb       +(,(<(H$$b  **T1>BBBBBBBBBBB	 ,+rX   r   argsc                   K   | j         t          d           | j         j        |d|t          u r| j        n|i d{V }|j        t          j        k    r|                                  |S )z
        Check that we're connected, if we got a timeout value, and then
        pass the command to the protocol.

        :raises SMTPServerDisconnected: connection lost
        NServer not connectedr:   )	rF   r   execute_commandr(   r:   r   r&   domain_unavailablerf   )rU   r:   r   rp   s       rV   r   zSMTP.execute_command  s       = ()?@@@66
+2h+>+>4<<G
 
 
 
 
 
 
 

 =J999JJLLLrX   c                    | j         | j         }nt          j        t          j        j                  }t          | j                  |_        | j        rt          j        |_	        nt          j
        |_	        | j        |                    | j                   | j        !|                    | j        | j                   |S )zO
        Build an SSLContext object from the options we've been given.
        N)cafile)keyfile)r@   r   create_default_contextPurposeSERVER_AUTHrj   r=   check_hostnameCERT_REQUIREDverify_mode	CERT_NONErA   load_verify_locationsr>   load_cert_chainr?   )rU   contexts     rV   r   zSMTP._get_tls_context.  s     '&GG 01HIIG%)$*=%>%>G"" 4&)&7##&)m#+--T5E-FFF+''(8$/'RRRrX   c                 .   | j         2| j                                         s| j                                          | j        2| j                                        r| j                                         d| _        d| _         |                                  dS )z(
        Closes the connection.
        N)rG   
is_closingrf   rM   lockedreleaserF   _reset_server_stater]   s    rV   rf   z
SMTP.closeE  s     >%dn.G.G.I.I%N  """)d.@.G.G.I.I)&&((( 	  """""rX   keyc                 p    | j         r| j        st          d          | j                            |          S )a`  
        Get extra info from the transport.
        Supported keys:

            - ``peername``
            - ``socket``
            - ``sockname``
            - ``compression``
            - ``cipher``
            - ``peercert``
            - ``sslcontext``
            - ``sslobject``

        :raises SMTPServerDisconnected: connection lost
        r   )r[   rG   r   get_extra_info)rU   r   s     rV   r   zSMTP.get_transport_infoU  s?      ! 	Adn 	A()?@@@~,,S111rX   )r4   r:   c                   K   |                      d|p| j                            d          |           d{V x}| _        |j        t
          j        k    rt          |j        |j                  |S )z
        Send the SMTP HELO command.
        Hostname to send for this command defaults to the FQDN of the local
        host.

        :raises SMTPHeloError: on unexpected server response code
        s   HELOasciir   N)	r   r8   encoderN   r   r&   	completedr   rr   rU   r4   r:   rp   s       rV   heloz	SMTP.helol  s       483G3Gh5$"5==gFFPW 4H 4
 4
 .
 .
 .
 .
 .
 .
 	
4* =J000x/?@@@rX   c                
  K   |                                   d{V  |                     d|           d{V }|j        t          j        t          j        t          j        fvrt          |j        |j                  |j        S )z
        Send the SMTP HELP command, which responds with help text.

        :raises SMTPResponseException: on unexpected server response code
        Ns   HELPr   )	r   r   r   r&   system_status_okhelp_messager   r   rr   rU   r:   rp   s      rV   helpz	SMTP.help  s       **,,,,,,,,,--gw-GGGGGGGG='# !
 
 

 (x7GHHHrX   c                   K   |                                   d{V  |                     d|           d{V }|j        t          j        k    rt          |j        |j                  |S )z
        Send an SMTP RSET command, which resets the server's envelope
        (the envelope contains the sender, recipient, and mail data).

        :raises SMTPResponseException: on unexpected server response code
        Ns   RSETr   r   r   r   r&   r   r   rr   r   s      rV   rsetz	SMTP.rset  s       **,,,,,,,,,--gw-GGGGGGGG=J000'x7GHHHrX   c                   K   |                                   d{V  |                     d|           d{V }|j        t          j        k    rt          |j        |j                  |S )z
        Send an SMTP NOOP command, which does nothing.

        :raises SMTPResponseException: on unexpected server response code
        Ns   NOOPr   r   r   s      rV   noopz	SMTP.noop  s       **,,,,,,,,,--gw-GGGGGGGG=J000'x7GHHHrX   )optionsr:   addressr   c                 K   |                                   d{V  |g }t          |          }t          d |D                       r:|                     d          st	          d          |                    d          }n|                    d          }d |D             } | j        d|g|R d	|i d{V }|j        t          j	        t          j
        t          j        fvrt          |j        |j                  |S )
z
        Send an SMTP VRFY command, which tests an address for validity.
        Not many servers support this command.

        :raises SMTPResponseException: on unexpected server response code
        Nc              3   F   K   | ]}|                                 d k    V  dS smtputf8Nlowerrz   options     rV   	<genexpr>zSMTP.vrfy.<locals>.<genexpr>  /      BBv||~~+BBBBBBrX   r   (SMTPUTF8 is not supported by this serverutf-8r   c                 8    g | ]}|                     d           S r   r   r   s     rV   r|   zSMTP.vrfy.<locals>.<listcomp>  $    FFFFw//FFFrX   s   VRFYr:   )r   r   r   r   r   r   r   r   r&   r   will_forwardcannot_vrfyr   rr   rU   r   r   r:   parsed_address
addr_bytesoptions_bytesrp   s           rV   vrfyz	SMTP.vrfy  sX      **,,,,,,,,,?G&w//BB'BBBBB 	8**:66 S&'QRRR'..w77JJ'..w77JFFgFFF--Z
"/
 
 
9@
 
 
 
 
 
 
 
 = #"!
 
 

 (x7GHHHrX   c                 K   |                                   d{V  |g }t          |          }t          d |D                       r:|                     d          st	          d          |                    d          }n|                    d          }d |D             } | j        d|g|R d	|i d{V }|j        t          j	        k    rt          |j        |j                  |S )
z
        Send an SMTP EXPN command, which expands a mailing list.
        Not many servers support this command.

        :raises SMTPResponseException: on unexpected server response code
        Nc              3   F   K   | ]}|                                 d k    V  dS r   r   r   s     rV   r   zSMTP.expn.<locals>.<genexpr>  r   rX   r   r   r   r   c                 8    g | ]}|                     d           S r   r   r   s     rV   r|   zSMTP.expn.<locals>.<listcomp>  r   rX   s   EXPNr:   )r   r   r   r   r   r   r   r   r&   r   r   rr   r   s           rV   expnz	SMTP.expn  s@      **,,,,,,,,,?G&w//BB'BBBBB 	8**:66 S&'QRRR'..w77JJ'..w77JFFgFFF--Z
"/
 
 
9@
 
 
 
 
 
 
 
 =J000'x7GHHHrX   c                   K   |                      d|           d{V }|j        t          j        k    rt	          |j        |j                  |                                  |S )z
        Send the SMTP QUIT command, which closes the connection.
        Also closes the connection from our side after a response is received.

        :raises SMTPResponseException: on unexpected server response code
        s   QUITr   N)r   r   r&   closingr   rr   rf   r   s      rV   rg   z	SMTP.quit  si       --gw-GGGGGGGG=J...'x7GHHH

rX   r   r   encodingr:   senderr   c               <  K   |                                   d{V  |g }t          |          }|                    |          }d |D             } | j        dd|z   g|R d|i d{V }|j        t
          j        k    rt          |j        |j        |          |S )z
        Send an SMTP MAIL command, which specifies the message sender and
        begins a new mail transfer session ("envelope").

        :raises SMTPSenderRefused: on unexpected server response code
        Nc                 8    g | ]}|                     d           S r   r   r   s     rV   r|   zSMTP.mail.<locals>.<listcomp>*  r   rX   s   MAILs   FROM:r:   )	r   r   r   r   r   r&   r   r   rr   )	rU   r  r   r   r:   quoted_senderr   r   rp   s	            rV   mailz	SMTP.mail  s       **,,,,,,,,,?G%f--"))(33
FFgFFF--X
*
-:
 
 
DK
 
 
 
 
 
 
 
 =J000#HM83CVLLLrX   	recipientc               P  K   |                                   d{V  |g }t          |          }|                    |          }d |D             } | j        dd|z   g|R d|i d{V }|j        t
          j        t
          j        fvrt          |j        |j	        |          |S )a  
        Send an SMTP RCPT command, which specifies a single recipient for
        the message. This command is sent once per recipient and must be
        preceded by 'MAIL'.

        :raises SMTPRecipientRefused: on unexpected server response code
        Nc                 8    g | ]}|                     d           S r   r   r   s     rV   r|   zSMTP.rcpt.<locals>.<listcomp>L  r   rX   s   RCPTs   TO:r:   )
r   r   r   r   r   r&   r   r   r   rr   )	rU   r  r   r   r:   quoted_recipientr   r   rp   s	            rV   rcptz	SMTP.rcpt5  s        **,,,,,,,,,?G(33%,,X66
FFgFFF--Vj(
+8
 
 
BI
 
 
 
 
 
 
 
 =!5z7N OOO&x}h6F	RRRrX   rr   c                 K   |                                   d{V  | j        t          d          |t          u r| j        }t          |t                    r|                    d          }| j                            ||           d{V S )a  
        Send an SMTP DATA command, followed by the message given.
        This method transfers the actual email content to the server.

        :raises SMTPDataError: on unexpected server response code
        :raises SMTPServerDisconnected: connection lost
        NConnection lostr   r   )	r   rF   r   r(   r:   rc   strr   execute_data_command)rU   rr   r:   s      rV   dataz	SMTP.dataW  s       **,,,,,,,,, = ():;;;hlGgs## 	.nnW--G]777QQQQQQQQQrX   c                   K   || j         }|                     d|                    d          |           d{V }|| _        |j        t
          j        k    rt          |j        |j                  |S )z
        Send the SMTP EHLO command.
        Hostname to send for this command defaults to the FQDN of the local
        host.

        :raises SMTPHeloError: on unexpected server response code
        Ns   EHLOr   r   )	r8   r   r   ro   r   r&   r   r   rr   r   s       rV   ehloz	SMTP.ehlou  s       *H--X__W--w . 
 
 
 
 
 
 
 
 #+=J000x/?@@@rX   	extensionc                8    |                                 | j        v S )zQ
        Tests if the server supports the ESMTP service extension given.
        )r   rP   )rU   r  s     rV   r   zSMTP.supports_extension  s       D$999rX   c                    K   | j         rY	 |                                  d{V  dS # t          $ r/}| j        r|                                  d{V  n|Y d}~dS d}~ww xY wdS )z
        Call self.ehlo() and/or self.helo() if needed.

        If there has been no previous EHLO or HELO command this session, this
        method tries ESMTP EHLO first.
        N)rv   r  r   r[   r   )rU   r`   s     rV   r   zSMTP._ehlo_or_helo_if_needed  s       & 	iikk!!!!!!!!!    $ ))++%%%%%%%%I &%%%%%	 	s   ' 
A $AA c                 L    d| _         d| _        i | _        d| _        g | _        dS )z<
        Clear stored information about the server.
        NF)rN   rO   rP   rQ   rR   r]   s    rV   r   zSMTP._reset_server_state  s2     #'#'  "##%   rX   )server_hostnamer=   r>   r?   rA   r@   r:   r  c                l  K   |                                   d{V  | j        t          d          |                     d          t	          d          |                     |||||           |                                  || j        }|t          u r| j	        }| 
                                }|                     d          st	          d          | j                            |||           d{V }| j        t          d	          | j        j        | _        |                                  |S )
aO  
        Puts the connection to the SMTP server into TLS mode.

        If there has been no previous EHLO or HELO command this session, this
        method tries ESMTP EHLO first.

        If the server supports TLS, this will encrypt the rest of the SMTP
        session. If you provide the keyfile and certfile parameters,
        the identity of the SMTP server and client can be checked (if
        validate_certs is True). You can also provide a custom SSLContext
        object. If no certs or SSLContext is given, and TLS config was
        provided when initializing the class, STARTTLS will use to that,
        otherwise it will use the Python defaults.

        :raises SMTPException: server does not support STARTTLS
        :raises SMTPServerDisconnected: connection lost
        :raises ValueError: invalid options provided
        Nr   r   zConnection already using TLS)r=   r>   r?   rA   r@   r   z0SMTP STARTTLS extension not supported by server.)r  r:   r  )r   rF   r   r   r   r   rT   r4   r(   r:   r   r   r<   rG   r   )	rU   r  r=   r>   r?   rA   r@   r:   rp   s	            rV   r   zSMTP.starttls  s{     : **,,,,,,,,,= ()?@@@""<00< >???)))#!## 	* 	
 	
 	
 	""mOhlG++--&&z22 	T RSSS00' 1 
 
 
 
 
 
 
 
 = ():;;;0 	  """rX   c                  K   |                                   d{V  |                     d          s:| j        r$|                     d          t	          d          t	          d          d}d}| j        D ]}d|                    dd           }	 t          | |          }n%# t          $ r}	t          d	|           |	d}	~	ww xY w	  ||||
           d{V } n# t          $ r}
|
}Y d}
~
zd}
~
ww xY w||pt	          d          |S )z
        Tries to login with supported auth methods.

        Some servers advertise authentication methods they don't really
        support, so if authentication fails, we continue until we've tried
        all methods.
        Nr{   r   z^The SMTP AUTH extension is not supported by this server. Try connecting via TLS (or STARTTLS).z8The SMTP AUTH extension is not supported by this server.auth_-r   z Missing handler for auth method r   z(No suitable authentication method found.)r   r   r[   r   r   r}   replacegetattrAttributeErrorr   r   )rU   r6   r7   r:   rp   	exception	auth_namemethod_nameauth_methoderrr`   s              rV   r1   z
SMTP.login  s      **,,,,,,,,,&&v.. 	  T%<%<\%J%J%R#8    J   ,07;	4 	 	I>)"3"3C"<"<>>K%dK88!   "ByBB !,Xx!Q!Q!QQQQQQQ
 	 +      						  X}-WXXXs0   B$$
C.CC
C  
C6*C11C6c               d  K   |                      dd|           d{V }|j        t          j        k    rt	          |j        |j                  t          |||j                  }|                      |           d{V }|j        t          j        k    rt	          |j        |j                  |S )a5  
        CRAM-MD5 auth uses the password as a shared secret to MD5 the server's
        response.

        Example::

            250 AUTH CRAM-MD5
            auth cram-md5
            334 PDI0NjA5LjEwNDc5MTQwNDZAcG9wbWFpbC5TcGFjZS5OZXQ+
            dGltIGI5MTNhNjAyYzdlZGE3YTQ5NWI0ZTZlNzMzNGQzODkw

           AUTHs   CRAM-MD5r   N)r   r   r&   auth_continuer   rr   r   auth_successful)rU   r6   r7   r:   initial_responseverification_bytesrp   s          rV   auth_crammd5zSMTP.auth_crammd5+  s      ( "&!5!5[' "6 "
 "
 
 
 
 
 
 
  J$<<<) %'7'?   1h 0 8
 
 --.@AAAAAAAA=J666)(-9IJJJrX   c                  K   t          ||          }|                     dd||           d{V }|j        t          j        k    rt          |j        |j                  |S )a  
        PLAIN auth encodes the username and password in one Base64 encoded
        string. No verification message is required.

        Example::

            220-esmtp.example.com
            AUTH PLAIN dGVzdAB0ZXN0AHRlc3RwYXNz
            235 ok, go ahead (#2.0.0)

        r$  s   PLAINr   N)r   r   r   r&   r&  r   rr   )rU   r6   r7   r:   encodedrp   s         rV   
auth_plainzSMTP.auth_plainR  s      & $Hh77--Xw . 
 
 
 
 
 
 
 
 =J666)(-9IJJJrX   c               d  K   t          ||          \  }}|                     dd||           d{V }|j        t          j        k    rt          |j        |j                  |                     ||           d{V }|j        t          j        k    rt          |j        |j                  |S )ad  
        LOGIN auth sends the Base64 encoded username and password in sequence.

        Example::

            250 AUTH LOGIN PLAIN CRAM-MD5
            auth login avlsdkfj
            334 UGFzc3dvcmQ6
            avlsdkfj

        Note that there is an alternate version sends the username
        as a separate command::

            250 AUTH LOGIN PLAIN CRAM-MD5
            auth login
            334 VXNlcm5hbWU6
            avlsdkfj
            334 UGFzc3dvcmQ6
            avlsdkfj

        However, since most servers seem to support both, we send the username
        with the initial request.
        r$  s   LOGINr   N)r   r   r   r&   r%  r   rr   r&  )rU   r6   r7   r:   encoded_usernameencoded_passwordr'  rp   s           rV   
auth_loginzSMTP.auth_logino  s      > .?x-R-R**!%!5!5X/ "6 "
 "
 
 
 
 
 
 
  J$<<<) %'7'?   --.>-PPPPPPPP=J666)(-9IJJJrX   mail_optionsrcpt_optionsr:   
recipientsr2  r3  c                 K   t          |t                    r|g}|g }nt          |          }|g }nt          |          }t          d |D                       rd}nd}| j        t          j                    | _        | j        4 d{V  |                                  d{V  |dk    r$|                     d          st          d          |                     d          r*t          |          }d| }	|                    d	|	           	 |                     ||||
           d{V  |                     ||||           d{V }
|                     ||           d{V }nP# t          t           f$ r<}	 |                     |           d{V  n# t$          t          f$ r Y nw xY w|d}~ww xY w	 ddd          d{V  n# 1 d{V swxY w Y   |
|j        fS )a  
        This command performs an entire mail transaction.

        The arguments are:
            - sender: The address sending this mail.
            - recipients: A list of addresses to send this mail to.  A bare
                string will be treated as a list with 1 address.
            - message: The message string to send.
            - mail_options: List of options (such as ESMTP 8bitmime) for the
                MAIL command.
            - rcpt_options: List of options (such as DSN commands) for all the
                RCPT commands.

        message must be a string containing characters in the ASCII range.
        The string is encoded to bytes using the ascii codec, and lone \\r
        and \\n characters are converted to \\r\\n characters.

        If there has been no previous HELO or EHLO command this session, this
        method tries EHLO first.

        This method will return normally if the mail is accepted for at least
        one recipient.  It returns a tuple consisting of:

            - an error dictionary, with one entry for each recipient that was
                refused.  Each entry contains a tuple of the SMTP error code
                and the accompanying error message sent by the server.
            - the message sent by the server in response to the DATA command
                (often containing a message id)

        Example:

             >>> event_loop = asyncio.get_event_loop()
             >>> smtp = aiosmtplib.SMTP(hostname="127.0.0.1", port=1025)
             >>> event_loop.run_until_complete(smtp.connect())
             (220, ...)
             >>> recipients = ["one@one.org", "two@two.org", "3@three.org"]
             >>> message = "From: Me@my.org\nSubject: testing\nHello World"
             >>> send_coro = smtp.sendmail("me@my.org", recipients, message)
             >>> event_loop.run_until_complete(send_coro)
             ({}, 'OK')
             >>> event_loop.run_until_complete(smtp.quit())
             (221, Bye)

        In the above example, the message was accepted for delivery for all
        three addresses. If delivery had been only successful to two
        of the three addresses, and one was rejected, the response would look
        something like::

            (
                {"nobody@three.org": (550, "User unknown")},
                "Written safely to disk. #902487694.289148.12219.",
            )


        If delivery is not successful to any addresses,
        :exc:`.SMTPRecipientsRefused` is raised.

        If :exc:`.SMTPResponseException` is raised by this method, we try to
        send an RSET command to reset the server envelope automatically for
        the next attempt.

        :raises SMTPRecipientsRefused: delivery to all recipients failed
        :raises SMTPResponseException: on invalid response
        Nc              3   F   K   | ]}|                                 d k    V  dS r   r   r   s     rV   r   z SMTP.sendmail.<locals>.<genexpr>  s/      GGv||~~+GGGGGGrX   r   r   r   r   sizezsize=r   r   )r   r:   r   )rc   r  listr   rS   r   r   r   r   r   leninsertr  _send_recipientsr  r   r   r   rd   rr   )rU   r  r4  rr   r2  r3  r:   mailbox_encodingmessage_lensize_optionrecipient_errorsrp   r`   s                rV   sendmailzSMTP.sendmail  s;     V j#&& 	&$JLL--LLL--LGG,GGGGG 	'&&&"),..D& 	 	 	 	 	 	 	 	..0000000007**43J3J:3V3V*&'QRRR&&v.. 4!'ll3k33##A{333ii(-#	            *.)>)>7GQX *? * * $ $ $ $ $ $  "&7G!D!DDDDDDD)+@A   ))G)4444444444')>?    D 	 -	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	B  !111sV   BGAE.-G.F; FF6F1.F60F11F66F;;G
GGc                 &  K   g }|D ]N}	 |                      ||||           d{V  ## t          $ r}|                    |           Y d}~Gd}~ww xY wt          |          t          |          k    rt	          |          d |D             }|S )ze
        Send the recipients given to the server. Used as part of
        :meth:`.sendmail`.
        r   Nc                 N    i | ]"}|j         t          |j        |j                  #S ry   )r  r$   r   rr   )rz   r"  s     rV   
<dictcomp>z)SMTP._send_recipients.<locals>.<dictcomp>7  s:     
 
 
 M<#+>>
 
 
rX   )r
  r   appendr9  r   )	rU   r4  r   r   r:   r?  r   r`   formatted_errorss	            rV   r;  zSMTP._send_recipients   s       ! 	- 	-G-iiWx             ( - - - '',,,,,,,,-   C
OO33'(8999
 
'
 
 

  s   *
AAA)r  r4  r2  r3  r:   c               4  K   |g }nt          |          }|t          |          }|t          d          t          |t                    r|g}n|t          |          }|st          d          |                                  d{V  	 |                    d           d                    |                              d           d}n# t          $ r d}Y nw xY w|rG| 
                    d          st          d	          dd
 |D             vr|                    d           | 
                    d          r&dd |D             vr|                    d           d}nd}t          |||          }	|                     |||	|||           d{V S )a}  
        Sends an :py:class:`email.message.EmailMessage` object.

        Arguments are as for :meth:`.sendmail`, except that message is an
        :py:class:`email.message.EmailMessage` object.  If sender is None or
        recipients is None, these arguments are taken from the headers of the
        EmailMessage as described in RFC 2822.  Regardless of the values of sender
        and recipients, any Bcc field (or Resent-Bcc field, when the message is a
        resent) of the EmailMessage object will not be transmitted.  The EmailMessage
        object is then serialized using :py:class:`email.generator.Generator` and
        :meth:`.sendmail` is called to transmit the message.

        'Resent-Date' is a mandatory field if the message is resent (RFC 2822
        Section 3.6.6). In such a case, we use the 'Resent-\*' fields.
        However, if there is more than one 'Resent-' block there's no way to
        unambiguously determine which one is the most recent in all cases,
        so rather than guess we raise a ``ValueError`` in that case.

        :raises ValueError:
            on more than one Resent header block
            on no sender kwarg or From header in message
            on no recipients kwarg or To, Cc or Bcc header in message
        :raises SMTPRecipientsRefused: delivery to all recipients failed
        :raises SMTPResponseException: on invalid response
        Nz"No From header provided in messagez(No recipient headers provided in messager   r   FTr   zeAn address containing non-ASCII characters was provided, but SMTPUTF8 is not supported by this serverc                 6    g | ]}|                                 S ry   r   r   s     rV   r|   z%SMTP.send_message.<locals>.<listcomp>  s     #N#N#NvFLLNN#N#N#NrX   SMTPUTF88BITMIMEzbody=8bitmimec                 6    g | ]}|                                 S ry   r   r   s     rV   r|   z%SMTP.send_message.<locals>.<listcomp>  s     &Q&Q&Q&v||~~&Q&Q&QrX   zBODY=8BITMIME8bit7bit)utf8cte_typer1  )r8  r   r   rc   r  r   r   r   joinUnicodeEncodeErrorr   r   rD  r   r@  )
rU   rr   r  r4  r2  r3  r:   utf8_requiredrN  flat_messages
             rV   send_messagezSMTP.send_message>  s1     H LL--L>#G,,F>ABBBj#&& 	5$JJ+G44J 	IGHHH **,,,,,,,,,	"MM'"""GGJ&&w/// "MM " 	! 	! 	! MMM	!
  	0**:66 0&?   #N#N#N#N#NNN##J///"":.. 	&Q&QL&Q&Q&QQQ##O444HHH&w]XVVV]]%% # 
 
 
 
 
 
 
 
 	
s   =C CCkwargsc                      dt           t          t          t          f         t          f         f fd}t	          j         |                      S )z
        Synchronous version of :meth:`.sendmail`. This method starts
        an event loop to connect, send the message, and disconnect.
        rD   c                     K   4 d {V   j          i  d {V cd d d           d {V  S # 1 d {V swxY w Y   d S rZ   )r@  r   rT  rU   s   rV   sendmail_coroutinez.SMTP.sendmail_sync.<locals>.sendmail_coroutine  s       < < < < < < < <*T]D;F;;;;;;;;< < < < < < < < < < < < < < < < < < < < < < < < < < < < < <   2
<<r	   r   r  r$   r   run)rU   r   rT  rX  s   ``` rV   sendmail_synczSMTP.sendmail_sync  sd    	<%S,5F0G0L*M 	< 	< 	< 	< 	< 	< 	< 	< {--//000rX   c                      dt           t          t          t          f         t          f         f fd}t	          j         |                      S )z
        Synchronous version of :meth:`.send_message`. This method
        starts an event loop to connect, send the message, and disconnect.
        rD   c                     K   4 d {V   j          i  d {V cd d d           d {V  S # 1 d {V swxY w Y   d S rZ   )rS  rW  s   rV   send_message_coroutinez6SMTP.send_message_sync.<locals>.send_message_coroutine  s      @ @ @ @ @ @ @ @.T.?????????@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @rY  rZ  )rU   r   rT  r_  s   ``` rV   send_message_synczSMTP.send_message_sync  sm    	@eDl9J4KS4P.Q 	@ 	@ 	@ 	@ 	@ 	@ 	@ 	@ {1133444rX   )rD   r)   )rD   N)r   r   rD   N)O__name__
__module____qualname____doc__r2   r	   r  __annotations__DEFAULT_TIMEOUTr   intr   bytesfloatrj   r   
SSLContextr'   rl   rW   r^   r
   BaseExceptionr   rh   propertyr[   r8   r$   ro   setterrv   r   r}   r(   r%   r   rT   r   r\   r   r   r   r   r   r   rf   r   r   r   r   r   r   r   r   rg   r  r
  r  r  r   r   r   r   r1   r)  r,  r0  r   r   r@  r;  emailrr   EmailMessageMessagerS  r\  r`  ry   rX   rV   r)   r)   1   s         2%L%S/    #."0404(,48#2$(#%)$(04%)04(,%W  W  W  3-W  sm	W 
 5e,-W  5e,-W  !W  !sCx1W  %W  W  D>W  W  c]W  SMW  cn-W   c]!W " n-#W $ v}%%W & 
'W  W  W  W r   
]+
2?
LO
	
 
 
 
 Nd N N N XN $ $ $ $ X$ (E,*<$= ( ( ( X( 	#< 	#D 	# 	# 	# 	# S S S S XS XS	 X X X XX 3;.69A9A8@DL"&4<)-5=4<@H5=@H8@!4 45g./4 uS'\*+4 5eW!456	4
 5eW!4564 !sG|!454 !uS#X'?!@A4 $4 E$-014 !4 eCL124 U3<014 eCNG$;<=4 eCL124 eNG$;<=4  uV]G345!4" 
#4 4 4 4l   B	3 	 	 	 	 3;.69A9A8@DL3;"&4<)-5=4<@H5=@H8@%e e e 5g./e uS'\*+	e
 5eW!456e 5eW!456e !sG|!45e !uS#X'?!@Ae %w/0e $e E$-01e !e eCL12e U3<01e eCNG$;<=e  eCL12!e" eNG$;<=#e$ uV]G345%e& 
'e e e eNE EL E E E EN   * * * *C C C C HP  %-eE7N.C%D	   ,#.    .# # # # 2c 2c 2 2 2 24 #'3;	   3- %w/0	
 
   , HP      XeE7N.C%D  TW        & =E  "5#89	   $ =E  "5#89	   * ,03;' ' ''
 (3-(' %w/0' 
' ' ' '\ ,03;# # ##
 (3-(# %w/0# 
# # # #L =E  "5#89	   , ,03;  
 (3-(  %w/0 
   L ,03;      
 (3-(    %w/0  
       N 4<R R RsEz"R
 %w/0R 
R R R RB #'3;	   3- %w/0	
 
   4:C :t : : : :    & & & & *.)-5=4<5=@H3;G G G "#G !	G
 eCL12G U3<01G eCL12G eCNG$;<=G %w/0G 
G G G G` 4</ /
 %w/0/U
#/ U
#/ 
/ / / /n 4<% % %U
#% U
#% %w/0% 
% % % %Z 4<  U
# U
# %w/0 
   F 4<. . .U
#. U
#. %w/0. 
. . . .n 15043;2 2 22 #x},-2 sEz"	2 x}-2 x}-2 %w/02 
tC%&+	,2 2 2 2J  3;   SM  #  	 
 %w/0  
c<	        F !%:>04043;Y
 Y
 Y
u}15=3HHIY

 Y
 U3#567Y
 x}-Y
 x}-Y
 %w/0Y
 
tC%&+	,Y
 Y
 Y
 Y
v11$'1	tC%&+	,1 1 1 155$'5	tC%&+	,5 5 5 5 5 5rX   r)   )7rd  r   email.messagern  rl   r   typingr   r   r   r   r   r   r	   r
   r   r{   r   r   r   r   r   r   r   r   errorsr   r   r   r   r   r   r   r   r   r   r   r    r!   esmtpr"   rF   r#   rp   r$   r%   r&   r'   r(   __all__r*   r+   r,   rf  r)   ry   rX   rV   <module>rv     s)   
       



 T T T T T T T T T T T T T T T T T T T T T T K K K K K K K K K K                                           * ) ) ) ) ) " " " " " " " " " " " " A A A A A A A A A A A A G	 B5 B5 B5 B5 B5 B5 B5 B5 B5 B5rX   