Hacked By AnonymousFox

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

�

�Q�fS7���	ddlZddlZddlZddlZ	ddlZdZddgZGd�de�Z	dZ
dZd	Zd
Z
ee
zZdZGd�d�ZerGd
�de�Zej%d�edk(r�ddlZeej(d�Zeej/��ej1ej(d�ej3ej(d�ej5�ej7�\ZZededz�D]<ZejAe�\Z!Z"Z#edez�e"D]
Z$ede$z��ed��>ejK�yy#e$rdZY��@wxYw)�NTF�POP3�error_protoc��eZdZy)rN)�__name__�
__module__�__qualname__���-/opt/alt/python312/lib64/python3.12/poplib.pyrrs�r
�ni��
�
ic��eZdZ	dZeejfd�Zd�Zd�Z	d�Z
d�Zd�Zd�Z
d	�Zd
�Zd�Zd�Zd
�Zd�Zd�Zd d�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zej<d�Zd�Z d�Z!d d�Z"d�Z#d�Z$d d�Z%y)!rzUTF-8c��||_||_d|_tjd|||�|j|�|_|jjd�|_d|_	|j�|_y)NFzpoplib.connect�rbr)�host�port�_tls_established�sys�audit�_create_socket�sock�makefile�file�
_debugging�_getresp�welcome)�selfrr�timeouts    r�__init__z
POP3.__init__bsg����	���	� %����	�	�"�D�$��5��'�'��0��	��I�I�&�&�t�,��	�����}�}���r
c�x�|�
|std��tj|j|jf|�S)Nz0Non-blocking socket (timeout=0) is not supported)�
ValueError�socket�create_connectionrr)rrs  rrzPOP3._create_socketms6����w��O�P�P��'�'����D�I�I�(>��H�Hr
c��|jdkDrtdt|��tjd||�|j
j
|tz�y)N�z*put*zpoplib.putline)r�print�reprrrr�sendall�CRLF�r�lines  r�_putlinez
POP3._putlinersB���?�?�Q���g�t�D�z� :��	�	�"�D�$�/��	�	���$��+�&r
c��|jrtdt|��t||j�}|j|�y)Nz*cmd*)rr'r(�bytes�encodingr-r+s  r�_putcmdzPOP3._putcmdzs2���?�?�E�'�4��:�6��T�4�=�=�)���
�
�d�r
c�R�|jjtdz�}t|�tkDrt	d��|j
dkDrt
dt|��|st	d��t|�}|ddtk(r|dd|fS|ddtk(r|dd|fS|dd|fS)Nr&z
line too longz*get*z-ERR EOF������)
r�readline�_MAXLINE�lenrrr'r(r*�CR)rr,�octetss   r�_getlinez
POP3._getline�s����y�y�!�!�(�Q�,�/���t�9�x���o�.�.��?�?�Q���g�t�D�z� :��;�z�2�2��T������9������9�f�$�$����8�r�>���"�:�v�%�%��C�R�y�&� � r
c��|j�\}}|jdkDrtdt|��|j	d�st|��|S)Nr&z*resp*�+)r:rr'r(�
startswithr)r�resp�os   rrz
POP3._getresp�sF���-�-�/���a��?�?�Q���h��T�
� ;����t�$��d�#�#��r
c��|j�}g}d}|j�\}}|dk7rJ|jd�r
|dz
}|dd}||z}|j|�|j�\}}|dk7r�J|||fS)Nr�.s..r&)rr:r=�append)rr>�listr9r,r?s      r�_getlongrespzPOP3._getlongresp�s����}�}�����A�6��-�-�/���a��d�l����u�%��a�C���A�B�x���a�Z�F��K�K����m�m�o�G�D�!�
�d�l��T�6�!�!r
c�D�|j|�|j�S�N)r1rr+s  r�	_shortcmdzPOP3._shortcmd�s�����T���}�}��r
c�D�|j|�|j�SrF)r1rDr+s  r�_longcmdz
POP3._longcmd�s�����T��� � �"�"r
c��|jSrF)r�rs r�
getwelcomezPOP3.getwelcome�s���|�|�r
c��||_yrF)r)r�levels  r�set_debuglevelzPOP3.set_debuglevel�s	����r
c�,�	|jd|z�S)NzUSER %s�rG�r�users  rrSz	POP3.user�s��	��~�~�i�$�.�/�/r
c�,�	|jd|z�S)NzPASS %srQ)r�pswds  r�pass_z
POP3.pass_�s��	��~�~�i�$�.�/�/r
c���	|jd�}|j�}|jrtdt	|��t|d�}t|d�}||fS)N�STATz*stat*r&�)rG�splitrr'r(�int)r�retval�rets�numMessages�sizeMessagess     r�statz	POP3.stat�s[��	�����'���|�|�~���?�?�E�(�D��J�7��$�q�'�l���4��7�|���\�*�*r
Nc�R�	|�|jd|z�S|jd�S)NzLIST %s�LIST�rGrI�r�whichs  rrCz	POP3.list�s2��	����>�>�)�e�"3�4�4��}�}�V�$�$r
c�,�	|jd|z�S)NzRETR %s�rIrds  r�retrz	POP3.retr�s��	��}�}�Y��.�/�/r
c�,�	|jd|z�S)NzDELE %srQrds  r�delez	POP3.deles��	��~�~�i�%�/�0�0r
c�&�	|jd�S)N�NOOPrQrKs r�noopz	POP3.noops��	��~�~�f�%�%r
c�&�	|jd�S)N�RSETrQrKs r�rsetz	POP3.rsets��6��~�~�f�%�%r
c�J�	|jd�}|j�|S)N�QUIT)rG�close)rr>s  r�quitz	POP3.quits!��R��~�~�f�%���
�
���r
c���		|j}d|_|�|j�|j}d|_|�1	|jtj
�|j�yy#t$r8}|jtjk7rt|dd�dk7r�Yd}~�Nd}~wwxYw#|j�wxYw#|j}d|_|��	|jtj
�nD#t$r8}|jtjk7rt|dd�dk7r�Yd}~nd}~wwxYw|j�w#|j�wxYwwxYw)N�winerrorri&')
rrsr�shutdownr#�	SHUT_RDWR�OSError�errno�ENOTCONN�getattr)rrr�excs    rrsz
POP3.closes,��F�	!��9�9�D��D�I����
�
���9�9�D��D�I���
!��M�M�&�"2�"2�3��J�J�L� �����	�	�U�^�^�3�"�3�
�A�6�%�?����
���J�J�L���9�9�D��D�I���
!��M�M�&�"2�"2�3�����	�	�U�^�^�3�"�3�
�A�6�%�?����
���J�J�L��D�J�J�L�� �sp�%C�A/�/	B0�8.B+�&B3�+B0�0B3�3C�E*�C?�>E�?	E�.D;�6E�;E�E�E*�E&�&E*c�,�	|jd|z�S)NzRPOP %srQrRs  r�rpopz	POP3.rpop7s��&��~�~�i�$�.�/�/r
s\+OK.[^<]*(<.*>)c�0�	t||j�}|jj|j�}|std��ddl}|jd�|z}|j|�j�}|jd|�d|���S)Nz!-ERR APOP not supported by serverrr&zAPOP � )r/r0�	timestamp�matchrr�hashlib�group�md5�	hexdigestrG)rrS�password�secret�mr��digests       r�apopz	POP3.apop>s���		��x����/���N�N� � ����.����A�B�B�������F�"�����V�$�.�.�0���~�~�d�F�;�<�<r
c�2�	|jd|�d|���S)NzTOP r�rg)rre�howmuchs   r�topzPOP3.topSs��	�
�}�}�E�7�;�<�<r
c�R�	|�|jd|z�S|jd�S)NzUIDL %s�UIDLrcrds  r�uidlz	POP3.uidl\s2��	����>�>�)�e�"3�4�4��}�}�V�$�$r
c�&�	|jd�S)N�UTF8rQrKs r�utf8z	POP3.utf8hs��	��~�~�f�%�%r
c��	d�}i}	|jd�}|d}|D]}||�\}}|||<�	|S#t$rtd��wxYw)Nc�T�|jd�j�}|d|ddfS)N�asciirr&)�decoderZ)r,�lsts  r�	_parsecapzPOP3.capa.<locals>._parsecap{s-���+�+�g�&�,�,�.�C��q�6�3�q�r�7�?�"r
�CAPAr&z!-ERR CAPA not supported by server)rIr)rr��capsr>�rawcaps�capline�capnm�capargss        r�capaz	POP3.capansw��	�	#���	C��=�=��(�D��1�g�G�"��!*�7�!3���w�%��U��#�
����	C��A�B�B�	C�s	�-8�A
c��	tstd��|jrtd��|j�}d|vrtd��|�t	j
�}|j
d�}|j|j|j��|_|jjd�|_d|_|S)Nz-ERR TLS support missing�$-ERR TLS session already established�STLSz!-ERR STLS not supported by server��server_hostnamerT)�HAVE_SSLrrr��ssl�_create_stdlib_contextrG�wrap_socketrrrr)r�contextr�r>s    r�stlsz	POP3.stls�s���	���8�9�9�� � ��D�E�E��y�y�{����~��A�B�B��?��0�0�2�G��~�~�f�%���'�'��	�	�8<�	�	�(�C��	��I�I�&�&�t�,��	� $����r
rF)&rrrr0�	POP3_PORTr#�_GLOBAL_DEFAULT_TIMEOUTr rr-r1r:rrDrGrIrLrOrSrVr`rCrhrjrmrprtrsr�re�compiler�r�r�r�r�r�r�r	r
rrr3s���)�V�H�"+��7�7�	'�I�
'��!�*�"� �#�� �0�0�
+�%�0�1�&�&�
�!�80�
��
�
�/�0�I�=�*=�	%�&��:r
c�B�eZdZ	efej
dd�d�Zd�Zdd�Zy)�POP3_SSLN)rr�c�n�|�tj�}||_tj	||||�yrF)r�r�r�rr )rrrrr�s     rr zPOP3_SSL.__init__�s.�����4�4�6��"�D�L��M�M�$��d�G�4r
c��tj||�}|jj||j��}|S)Nr�)rrr�r�r)rrrs   rrzPOP3_SSL._create_socket�s<���&�&�t�W�5�D��<�<�+�+�D�<@�I�I�,�G�D��Kr
c��	td��)Nr�)r)rr�s  rr�z
POP3_SSL.stls�s��
��D�E�Er
rF)	rrr�
POP3_SSL_PORTr#r�r rr�r	r
rr�r��s,��		�'4�	5� &� >� >��	5�	�	Fr
r��__main__r&rY�zMessage %d:z   z-----------------------)&rzr�r#rr�r��ImportError�__all__�	Exceptionrr�r�r8�LFr*r6rr�rBr�argv�ar'rLrSrVrCr`�numMsgs�	totalSize�range�irh�header�msgr9r,rtr	r
r�<module>r�s|���
�	�
�
����H��-�
 ��#�)�"�
�	��
���
��	�"�u����k�k�\�F�4�F�@�N�N�:���z����S�X�X�a�[��A�	�!�,�,�.���F�F�3�8�8�A�;���G�G�C�H�H�Q�K���F�F�H��6�6�8��W�i�
�1�g��k�
"�� !���q�	����f�
�m�a�� ��D��%�$�,���
�'�(�#��F�F�H���[
���H��s�E�E�E

Hacked By AnonymousFox1.0, Coded By AnonymousFox