AlkantarClanX12

Your IP : 18.191.81.46


Current Path : /opt/alt/python312/lib64/python3.12/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/__pycache__/smtplib.cpython-312.opt-2.pyc

�

�Q�f�����	ddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlm
Zgd�ZdZdZdZdZdZd	Zej,d
ej.�ZGd�de�ZGd
�de�ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�de�Z Gd�de�Z!Gd�de�Z"Gd�de�Z#d�Z$d �Z%d!�Z&d"�Z'd#�Z(	ddl)Z)d$Z*Gd&�d'�Z,e*rGd(�d)e,�Z-ej]d)�d*Z/Gd+�d,e,�Z0e1d-k(r�d.�Z2e2d/�Z3e2d0�jid1�Z5e6d2�d3Z7ejpjs�xZ:r"e7e:zZ7ejpjs�xZ:r�"e6d4e;e7�z�e,d5�Z<e<j{d6�e<j}e3e5e7�e<j�yy#e+$rd%Z*Y��wxYw)7�N)�body_encode)
�
SMTPException�SMTPNotSupportedError�SMTPServerDisconnected�SMTPResponseException�SMTPSenderRefused�SMTPRecipientsRefused�
SMTPDataError�SMTPConnectError�
SMTPHeloError�SMTPAuthenticationError�	quoteaddr�	quotedata�SMTP�i��
s
i �z	auth=(.*)c��eZdZy)rN��__name__�
__module__�__qualname__���./opt/alt/python312/lib64/python3.12/smtplib.pyrrHs��>rrc��eZdZy)rNrrrrrrK���rrc��eZdZy)rNrrrrrrRs��rrc��eZdZ	d�Zy)rc�2�||_||_||f|_y�N)�	smtp_code�
smtp_error�args)�self�code�msgs   r�__init__zSMTPResponseException.__init__cs���������3�K��	rN�rrrr(rrrrrZs��� rrc��eZdZ	d�Zy)rc�B�||_||_||_|||f|_yr!)r"r#�senderr$)r%r&r'r,s    rr(zSMTPSenderRefused.__init__os%������������3��'��	rNr)rrrrrhs���(rrc��eZdZ	d�Zy)r	c�"�||_|f|_yr!)�
recipientsr$)r%r/s  rr(zSMTPRecipientsRefused.__init__}s��$����M��	rNr)rrrr	r	us���"rr	c��eZdZy)r
Nrrrrr
r
�s��1rr
c��eZdZy)rNrrrrrr�s��0rrc��eZdZy)rNrrrrrr�s��,rrc��eZdZy)r
Nrrrrr
r
�rrr
c��	tjj|�\}}||fdk(r&|j�j	d�r|Sd|zSd|zS)N��r6�<z<%s>)�email�utils�	parseaddr�strip�
startswith��
addrstring�displayname�addrs   rrr�sa������-�-�j�9��K���T��h�&�����(�(��-����
�"�"��D�=�rc�\�tjj|�\}}||fdk(r|S|S)Nr5)r8r9r:r=s   r�
_addr_onlyrB�s3�����-�-�j�9��K���T��h�&����Krc	�d�	tjddtjdt|��S)Nz(?m)^\.z..�(?:\r\n|\n|\r(?!\n))��re�sub�CRLF��datas rrr�s/���
�6�6�*�d�
���&��d�3�5�5rc�0�tjdd|�S)Ns(?m)^\.s..)rFrG)�bindatas r�_quote_periodsrM�s��
�6�6�+�u�g�.�.rc�8�tjdt|�S)NrDrErIs r�	_fix_eolsrO�s���F�F�*�D�$�7�7rTFc�R�eZdZ	dZdZdZdZdZdZdZ	e
Zdddejdfd�Zd�Zd�Zd	�Zd
�Zd�Zd+d�Zd
�Zd,d�Zd�Zd,d�Zd,d�Zd,d�Zd�Zd,d�Zd�Zd�Zd�Zd-d�Z d-d�Z!d�Z"d�Z#e#Z$d�Z%d�Z&dd�d �Z'd.d!�Z(d.d"�Z)d.d#�Z*dd�d$�Z+dd%�d&�Z,		d/d'�Z-		d0d(�Z.d)�Z/d*�Z0y)1rrN�ehloFr6c��	||_||_i|_d|_||_d|_|r6|j
||�\}}|dk7r|j�t||��|�||_	ytj�}d|vr||_	yd}		tjtj��}	d|	z|_	y#tj$rY� wxYw)N�asciir���.z	127.0.0.1z[%s])�_host�timeout�esmtp_features�command_encoding�source_address�_auth_challenge_count�connect�closer�local_hostname�socket�getfqdn�
gethostbyname�gethostname�gaierror)
r%�host�portr^rWrZr&r'�fqdnr@s
          rr(z
SMTP.__init__�s���	���
���� ��� '���,���%&��"���,�,�t�T�2�K�T�3��s�{��
�
��&�t�S�1�1��%�"0�D��
�>�>�#�D��d�{�&*��#�#���!�/�/��0B�0B�0D�E�D�'-�t�m��#��������s�'C�C�Cc��|Sr!r�r%s r�	__enter__zSMTP.__enter__s���rc��	|jd�\}}|dk7rt||��	|j�y#t$rY�wxYw#|j�wxYw)N�QUIT��)�docmdrrr])r%r$r&�messages    r�__exit__z
SMTP.__exit__s]��	� �J�J�v�.�M�D�'��s�{�+�D�'�:�:��

�J�J�L��&�	��	��
�J�J�L�s&�%9�A�	A�A�A�A�Ac��	||_yr!)�
debuglevel)r%rqs  r�set_debuglevelzSMTP.set_debuglevel"s��	�%��rc���|jdkDrHttjj�j	�g|��dt
ji�yt|dt
ji�y)N��file)rq�print�datetime�now�time�sys�stderr�r%r$s  r�_print_debugzSMTP._print_debug+sM���?�?�Q���(�#�#�'�'�)�.�.�0�I�4�I�c�j�j�I��4�)�c�j�j�)rc���|�
|std��|jdkDr|jd||f|j�t	j
||f||j�S)N�0Non-blocking socket (timeout=0) is not supportedrzconnect: to)�
ValueErrorrqr}rZr_�create_connection)r%rdrerWs    r�_get_socketzSMTP._get_socket1sd����w��O�P�P��?�?�Q�����m�d�D�\�4�;N�;N�O��'�'��t��g�(,�(;�(;�=�	=rc��	|r||_|sR|jd�|jd�k(r/|jd�}|dk\r|d|||dzd}}	t|�}|s|j}tjd|||�|j|||j�|_d|_|j�\}}|jdkDr|jdt!|��||fS#t$rtd��wxYw)N�:rrtznonnumeric portzsmtplib.connect�connect:)rZ�find�rfind�intr��OSError�default_portrz�auditr�rW�sockru�getreplyrqr}�repr)r%rdrerZ�ir&r's       rr\zSMTP.connect;s��		��"0�D������3��4�:�:�c�?�:��
�
�3��A��A�v�!�"�1�X�t�A��E�F�|�d��5��t�9�D���$�$�D��	�	�#�T�4��6��$�$�T�4����>��	���	��m�m�o���s��?�?�Q�����j�$�s�)�4��c�{���"�5�!�"3�4�4�5�s�C/�/Dc��	|jdkDr|jdt|��|jr_t	|t
�r|j
|j�}tjd||�	|jj|�ytd��#t$r|j�td��wxYw)Nrzsend:zsmtplib.send�Server not connectedzplease run connect() first)rqr}r�r��
isinstance�str�encoderYrzr��sendallr�r]r)r%�ss  r�sendz	SMTP.send\s���%��?�?�Q�����g�t�A�w�/��9�9��!�S�!��H�H�T�2�2�3���I�I�n�d�A�.�
E��	�	�!�!�!�$�
)�)E�F�F��	�
E��
�
��,�-C�D�D�
E�s�;B"�"%Cc���	|dk(r|}n|�d|��}d|vsd|vr0|jdd�jdd�}td|����|j|�t���y)Nr6� �
�
z\nz\rz=command and arguments contain prohibited newline characters: )�replacer�r�rH)r%�cmdr$r�s    r�putcmdzSMTP.putcmdosx��+��2�:��A��%�q����A��1�9���	��	�	�$��&�.�.�t�U�;�A��O�PQ�s�S��
�	
�	�	�Q�C��v�,�rc��	g}|j� |jjd�|_		|jjtdz�}|s|j
�td��|jdkDr|jdt|��t|�tkDr|j
�tdd��|j|d	djd
��|dd}	t!|�}|dd	d
k7rn��dj%|�}|jdkDr|jd|�d|���||fS#t
$r,}|j
�tdt|�z��d}~wwxYw#t"$rd}Y��wxYw)N�rbrtz Connection unexpectedly closed: zConnection unexpectedly closedrzreply:i�zLine too long.�s 	
�����-�
zreply: retcode (z); Msg: )rur��makefile�readline�_MAXLINEr�r]rr�rqr}r��lenr�appendr;r�r��join)r%�resp�line�er&�errcode�errmsgs       rr�z
SMTP.getreply|s��	����9�9���	�	�*�*�4�0�D�I��
7��y�y�)�)�(�Q�,�7��
��
�
��,�-M�N�N�����"��!�!�(�D��J�7��4�y�8�#��
�
��+�C�1A�B�B��K�K��Q�R����z�2�3����8�D�
��d�)��
�A�a�y�D� ��5�8���D�!���?�?�Q�������P�Q������9�
7��
�
��,�-O�/2�1�v�.6�7�7��
7��$�
����
�s)�"E�2E:�	E7�'E2�2E7�:F�Fc�H�	|j||�|j�Sr!�r�r�)r%r�r$s   rrmz
SMTP.docmd�s��;����C����}�}��rc��	|jd|xs|j�|j�\}}||_||fS)N�helo)r�r^r��	helo_resp)r%�namer&r's    rr�z	SMTP.helo�sB��	�	
���F�D�7�D�$7�$7�8��m�m�o���s�����c�{�rc��	i|_|j|j|xs|j�|j	�\}}|dk(r)t|�dk(r|j
�td��||_|dk7r||fSd|_	|jjd�jd�}|d=|D�]}tj|�}|rB|jjdd	�d
z|jd�dz|jd<�]t!jd|�}|s�v|j#d�j%�}|j&|j)d�dj+�}	|dk(r0|jj|d	�d
z|	z|j|<��|	|j|<��||fS)
Nr�rr��Tzlatin-1r��authr6r�z((?P<feature>[A-Za-z0-9][A-Za-z0-9\-]*) ?�feature)rXr��ehlo_msgr^r�r�r]r�	ehlo_resp�
does_esmtp�decode�split�
OLDSTYLE_AUTH�match�get�groupsrF�group�lower�string�endr;)
r%r�r&r'r��each�
auth_match�mr��paramss
          rrQz	SMTP.ehlo�s���	�!������D�M�M�4�#>�4�+>�+>�?��m�m�o���s��2�:�#�c�(�a�-��J�J�L�(�)?�@�@�����3�;��#�;������~�~�$�$�Y�/�5�5�d�;����G��D�'�,�,�T�2�J��.2�.A�.A�.E�.E�f�b�.Q��/� *� 1� 1�!� 4�Q� 7�/8��#�#�F�+�����D�d�K�A���'�'�)�,�2�2�4�����!�%�%�	�"2�"3�4�:�:�<���f�$�37�3F�3F�3J�3J�7�TV�3W�!�4"�$*�4+�D�'�'��0�4:�D�'�'��0�5�6�c�{�rc�<�	|j�|jvSr!)r�rX)r%�opts  r�has_extnz
SMTP.has_extn�s��E��y�y�{�d�1�1�1�1rc�N�	|jd|�|j�dS)N�helprtr�r|s  rr�z	SMTP.help�s&��	*����F�D�!��}�}��q�!�!rc�4�	d|_|jd�S)NrS�rset)rYrmrhs rr�z	SMTP.rset�s��4� '����z�z�&�!�!rc�F�		|j�y#t$rYywxYwr!)r�rrhs r�_rsetz
SMTP._rset�s'��	�	��I�I�K��%�	��	�s��	 � c�&�	|jd�S)N�noop)rmrhs rr�z	SMTP.noops��;��z�z�&�!�!rc��	d}|rV|jrJtd�|D��r$|jd�rd|_nt	d��ddj|�z}|j
ddt|��|���|j�S)	Nr6c3�BK�|]}|j�dk(���y�w)�smtputf8N)r�)�.0�xs  r�	<genexpr>zSMTP.mail.<locals>.<genexpr>s����:�'�Q�1�7�7�9�j�(�'�s�r�zutf-8z SMTPUTF8 not supported by serverr��mailzFROM:)	r��anyr�rYrr�r�rr�)r%r,�options�
optionlists    rr�z	SMTP.mails���	��
��t����:�'�:�:��=�=��,�,3�D�)�/�:�<�<��s�x�x��0�0�J����F�9�V�+<�j�I�J��}�}��rc��	d}|r |jrddj|�z}|jddt|��|���|j	�S)Nr6r��rcptzTO:)r�r�r�rr�)r%�recipr�r�s    rr�z	SMTP.rcpt$sJ��I��
��t����s�x�x��0�0�J����F��5�)9�:�F�G��}�}��rc��	|jd�|j�\}}|jdkDr|jd||f�|dk7rt	||��t|t�rt|�jd�}t|�}|ddtk7r	|tz}|dztz}|j|�|j�\}}|jdkDr|jd||f�||fS)NrJrzdata:ibrS����.)r�r�rqr}r
r�r�rOr�rM�bCRLFr�)r%r'r&�repl�qs     rrJz	SMTP.data,s���	�	
���F���}�}����t��?�?�Q�����g��d�|�4��3�;���d�+�+��#�s�#���n�+�+�G�4���s�#�A����v�����I���D��5� �A��I�I�a�L��-�-�/�K�T�3�����"��!�!�'�D�#�;�7��#�;�rc�Z�	|jdt|��|j�S)N�vrfy�r�rBr��r%�addresss  r�verifyzSMTP.verifyIs$��C����F�J�w�/�0��}�}��rc�Z�	|jdt|��|j�S)N�expnr�r�s  rr�z	SMTP.expnPs$��<����F�J�w�/�0��}�}��rc���	|j�Y|j�Ld|j�dcxkrdks/n|j�\}}d|cxkrdksnt	||��yyyy)N��ri+)r�r�rQr�r)r%r&r�s   r�ehlo_or_helo_if_neededzSMTP.ehlo_or_helo_if_neededWsn��		��>�>�!�d�n�n�&<��4�9�9�;�q�>�0�S�0�#�y�y�{���t��t�*�s�*�'��d�3�3�+�1�'=�!rT��initial_response_okc�J�	|j�}|r|�nd}|�?t|jd�d��}|jd|dz|z�\}}d|_n|jd|�\}}d|_|dk(r�|xjdz
c_tj|�}t||�jd�d��}|j|�\}}|jtkDrtd	t||f�z��|dk(r��|d
vr||fSt||��)NrSr6)�eol�AUTHr�rtriNz4Server AUTH mechanism infinite loop. Last response: ���i�)�upper�
encode_base64r�rmr[�base64�decodebytes�
_MAXCHALLENGErr�r
)	r%�	mechanism�
authobjectr��initial_response�responser&r��	challenges	         rr�z	SMTP.authhs2��	�*�O�O�%�	�,?�J�L�T���'�$�%5�%<�%<�W�%E�2�N�H��:�:�f�i�#�o��.H�I�L�T�4�)*�D�&��:�:�f�i�8�L�T�4�)*�D�&��c�k��&�&�!�+�&��*�*�4�0�I�$��9�%�,�,�W�5�2�?�H��:�:�h�/�L�T�4��)�)�M�9�#�J��D�$�<�(�)����c�k��:���$�<��%�d�D�1�1rc��	|�y|jdztj|jj	d�|d�j�zS)Nr�rS�md5)�user�hmac�HMAC�passwordr��	hexdigest�r%rs  r�
auth_cram_md5zSMTP.auth_cram_md5�sQ��	(�����y�y�3������M�M� � ��)�9�e�"=�=F�Y�[�I�	Irc�:�d|j�d|j��S)N�)rrr
s  r�
auth_plainzSMTP.auth_plain�s��	$�!�Y�Y��
�
�6�6rc�V�	|�|jdkr|jS|jS)N�)r[rrr
s  r�
auth_loginzSMTP.auth_login�s.��	$���� :� :�Q� >��9�9���=�=� rc���	|j�|jd�std��|jdj	�}gd�}|D�cgc]}||vr|��
}}|std��||c|_|_|D]Q}d|j�jdd�z}		|j|t||	�|��\}
}|
d	vr|
|fcS�S
�cc}w#t$r}|}
Yd}~�kd}~wwxYw)
Nr�z,SMTP AUTH extension not supported by server.)zCRAM-MD5�PLAIN�LOGINz(No suitable authentication method found.�auth_�-�_r�r�)
r�r�rrXr�rrrr�r�r��getattrr
)r%rrr��advertised_authlist�preferred_authsr��authlist�
authmethod�method_namer&r�r��last_exceptions              r�loginz
SMTP.login�s/��	�6	
�#�#�%��}�}�V�$�'�>�@�
@�#�1�1�&�9�?�?�A��9��&5�4�_�T��2�2��_��4��� J�K�K�
$(�� ��	�4�=�"�J�!�J�$4�$4�$6�$>�$>�s�C�$H�H�K�	
#�#�y�y����k� :�(;� )� =���t�
�:�%� �$�<�'�&�#����/4��&+�
#�!"���
#�s�
C�'(C�	C0�$C+�+C0)�contextc��	|j�|jd�std��|jd�\}}|dk(rztstd��|�t
j�}|j|j|j��|_	d|_d|_d|_
i|_d|_||fSt!||��)N�starttlsz+STARTTLS extension not supported by server.�STARTTLSrTz&No SSL support included in this Python��server_hostnameF)r�r�rrm�	_have_ssl�RuntimeError�ssl�_create_stdlib_context�wrap_socketr�rVrur�r�rXr�r)r%r#r��replys    rr%z
SMTP.starttls�s���	� 	
�#�#�%��}�}�Z�(�'�=�?�
?��
�
�:�.�
��u��3�;��"�#K�L�L����4�4�6���+�+�D�I�I�<@�J�J�,�H�D�I��D�I�
"�D�N�!�D�N�"$�D��#�D�O��e�}��(��e�4�4rc�|�	|j�g}t|t�rt|�j	d�}|j
rF|j
d�r|jdt|�z�|D]}|j|��|j||�\}}	|dk7r3|dk(r|j�n|j�t||	|��i}
t|t�r|g}|D]H}|j||�\}}	|dk7r|dk7r||	f|
|<|dk(s�/|j�t|
��t|
�t|�k(r|j�t|
��|j|�\}}	|dk7r2|dk(r|j�n|j�t!||	��|
S)NrS�sizezsize=%dr�i��)r�r�r�rOr�r�r�r�r�r�r]r�rr�r	rJr
)r%�	from_addr�to_addrsr'�mail_options�rcpt_options�
esmtp_opts�optionr&r��senderrsr�s            r�sendmailz
SMTP.sendmails���=	�|	
�#�#�%��
��c�3���C�.�'�'��0�C��?�?��}�}�V�$��!�!�)�c�#�h�"6�7�&���!�!�&�)�'��y�y��J�7���t��3�;��s�{��
�
���
�
��#�D�$�	�:�:����h��$� �z�H��D��9�9�T�<�8�L�T�4����$�#�+�"&�������s�{��
�
��+�H�5�5�
��x�=�C��M�)��J�J�L�'��1�1��y�y��~���t��3�;��s�{��
�
���
�
����d�+�+��rc�2�	|j�|jd�}|�d}nt|�dk(rd}ntd��|�=|dz|vr||dzn||dz}tj
j
|g�dd}|�U||d	z||d
z||dzfD�cgc]}|�|��}	}tj
j
|	�D�
cgc]}
|
d��	}}
tj|�}|d
=|d=d
}	dj|g|��jd�tj�5}
|rEtjj!|
|j"j%d����}g|�d�d��}ntjj!|
�}|j'|d��|
j)�}ddd�|j+||||�Scc}wcc}
w#t$r!|jd�std��d}Y��wxYw#1swY�UxYw)NzResent-Dater6rtzResent-z0message has more than one 'Resent-' header block�Sender�Fromr�To�Bcc�Ccz
Resent-BccFrSr�z�One or more source or delivery addresses require internationalized email support, but the server does not advertise the required SMTPUTF8 capabilityT)�utf8)�policy�SMTPUTF8z
BODY=8BITMIMEr)�linesep)r��get_allr�r�r8r9�getaddresses�copyr�r��UnicodeEncodeErrorr�r�io�BytesIO�	generator�BytesGeneratorrA�clone�flatten�getvaluer9)r%r'r2r3r4r5�resent�
header_prefix�f�addr_fields�a�msg_copy�
international�bytesmsg�g�flatmsgs                r�send_messagezSMTP.send_message�sb��	�:	
�#�#�%����]�+���>��M�
��[�A�
�%�M��O�P�P��� -�x�7�C�?��]�X�5�6� #�M�F�$:� ;�
����0�0�)��=�a�@��C�I���'*�=�4�+?�'@�'*�=�5�+@�'A�'*�=�4�+?�'@�'B�-�'B�� �m��'B�K�-�',�k�k�&>�&>�{�&K�L�&K���!��&K�H�L��9�9�S�>���U�O��\�"��
�	!��G�G�Y�*��*�+�2�2�7�;��Z�Z�\�X���O�O�2�2��S�Z�Z�%5�%5�4�%5�%@�3�B��K��K�z�K�?�K���O�O�2�2�8�<��
�I�I�h��I�/��'�'�)�G���}�}�Y��'�<�)�+�	+��9-��M��"�	!��=�=��,�+�K�L�L�!�M�
	!���\�s+�G�G�8#G �/B
H
� 'H
�	H
�
Hc���		|j}d|_|r|j�|j}d|_|r|j�yy#|j}d|_|r|j�wwxYwr!)rur]r�)r%rur�s   rr]z
SMTP.close�sl��6�		��9�9�D��D�I���
�
���9�9�D��D�I���
�
�����9�9�D��D�I���
�
���s�%A�(A7c��	|jd�}dx|_|_i|_d|_|j�|S)N�quitF)rmr�r�rXr�r])r%�ress  rr\z	SMTP.quit�s>��)��j�j�� ��*.�.����� �������
�
���
r��	localhostrN)r6)rr!)rr)NNrr)1rrrrqr�rur�r�r�r��	SMTP_PORTr�r_�_GLOBAL_DEFAULT_TIMEOUTr(rirorrr}r�r\r�r�r�rmr�rQr�r�r�r�r�r�r�rJr�r�r�r�r�rrrr"r%r9rYr]r\rrrrr�s&���8�J��D��D��I��H��I��J��L��Q�t��7�7� $�.4�`��%�*�=��BG�& �/�b��1�f2�"�"�

�"��*��:�
�D��4�"BF�.2�`I�7�
!�<@�@�D#'�+�Z?A� �f�P:>�35�K+�Z�rrc�J��eZdZ	eZdejddd�d�Z�fd�Z�xZ	S)�SMTP_SSLN)rWrZr#c�r�|�tj�}||_tj	||||||�yr!)r+r,r#rr()r%rdrer^rWrZr#s       rr(zSMTP_SSL.__init__�s7�����4�4�6��"�D�L��M�M�$��d�N�G�(�
*rc���|jdkDr|jd||f�t�|�
|||�}|jj||j��}|S)Nrr�r')rqr}�superr�r#r-rV)r%rdrerW�
new_socket�	__class__s     �rr�zSMTP_SSL._get_sockets_�������"��!�!�*�t�T�l�;���,�T�4��A�J����1�1�*�BF�*�*�2�N�J��r)r6rN)
rrr�
SMTP_SSL_PORTr�r_rar(r��
__classcell__�rhs@rrcrc�s1���	�%��	*� &� >� >�$(�$�	*�	�	rrci�c�P��eZdZ	dZdeddejf�fd�	Zd�fd�	Z�xZ	S)�LMTP�lhlor6Nc�0��	t�|�|||||��y)N)r^rZrW)rfr()r%rdrer^rZrWrhs      �rr(z
LMTP.__init__ s$���(�
����t�N�(6��	�	Irc����	|ddk7rt�|�|||��S|j�|jstd��	t	jtj
tj�|_|jtjur%|jj|j�d|_
|jj|�|j�\}}|jdkDr|jd|�||fS#t$rP|jdkDr|jd|�|jr|jj�d|_�wxYw)Nr�/)rZrz
connect fail:r�)rfr\rWr�r_�AF_UNIX�SOCK_STREAMr�ra�
settimeoutrur�rqr}r]r�)r%rdrerZr&r'rhs      �rr\zLMTP.connect&s'���K���7�c�>��7�?�4��n�?�M�M��<�<�#�D�L�L��O�P�P�	��
�
�f�n�n�f�6H�6H�I�D�I��|�|�6�#A�#A�A��	�	�$�$�T�\�\�2��D�I��I�I���d�#��m�m�o���s��?�?�Q�����j�#�.��c�{����	�����"��!�!�/�4�8��y�y��	�	���!��D�I��
	�s�BD�AE,r^)
rrrr��	LMTP_PORTr_rar(r\rjrks@rrmrms1���4��H��Y�t� $�f�.L�.L�I��rrm�__main__c���tjj|dz�tjj�tjj�j
�S)Nz: )rz�stdout�write�flush�stdinr�r;)�prompts rr|r|EsD���
�
����$��'��
�
�����y�y�!�!�#�)�)�+�+rr<r=�,zEnter message, end with ^D:r6zMessage length is %dr_rt)@r_rHrF�email.utilsr8�
email.message�email.generatorr�r	rFrwrz�email.base64mimerr��__all__r`rirHr�r�r�compile�Ir�r�rrrrrr	r
rrr
rrBrrMrOr+r)�ImportErrorrrcr�rurmrr|�fromaddrr��toaddrsrvr'r{r�r�r��serverrrr9r\rrr�<module>r�s)���R�	�	����
����
�9�-��

�	��
�
�������
���
�
�<����.�
�?�G�?��M���]�� �M� �(�-�(�
"�M�
"�2�)�2�1�,�1�-�)�-��3����5�/�8����I�i�i�V
��4��<�N�N�:��

�	�/�4�/�h�z��,�
�f�~�H��T�l� � ��%�G�	�
'�(�
�C��)�)�$�$�&�
&�$�
&��D�j���)�)�$�$�&�
&�$�
&�	�
 �3�s�8�
+�,�
�+�
�F�
���!��
�O�O�H�g�s�+�
�K�K�M�#��Y���I��s�G�G"�!G"