����JFIF���������
1#@!#!123s
D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
python313
/
lib64
/
python3.13
/
__pycache__
/
Filename :
poplib.cpython-313.opt-1.pyc
back
Copy
� ����rdYh9����������������������������S�r�SSKrSSKrSSKrSSKr�SSKrSrSS/r�"�S�S\ 5������r SrS rS r Sr\ \-���rSr�"�S �S5������r\(�������a���"�S�S\5������r\R'������������������S5������ �\S:X��a���\"�\R*������������������S���5������r\"�\R1������������������5�������5������ �\R3������������������\R*������������������S���5������ �\R5������������������\R*������������������S���5������ �\R7������������������5������� �\R9������������������5�������u��rr\"�S\S-���5�������H?��r \RC������������������\ 5������u��r"r#r$\"�S\ -��5������ �\#�H��r%\"�S\%-���5������ �M��� �\"�S5������ �MA��� �\RM������������������5������� �gg!�\�a�� �Sr�GNGf�=�f)z@A POP3 client class. Based on the J. Myers POP3 draft, Jan. 96 �����NTF�POP3�error_protoc�������������������������\�rS�rSrSrg)r���������N)�__name__� __module__�__qualname__�__firstlineno__�__static_attributes__r���������-/opt/alt/python313/lib64/python3.13/poplib.pyr���r������s������dr ����n���i������� ���� i���c������������������������\�rS�rSrSrSr\\R������������������4S�jr S�r S�rS�rS�r S �rS �rS�rS�rS �rS�rS�rS�rS�rS#S�jrS�rS�rS�rS�rS�rS�rS�r\R@������������������"�S5������r!S�r"S�r#S#S�jr$S�r%S �r&S#S!�jr'S"r(g)$r����3���a���This class supports both the minimal and optional command sets. Arguments can be strings or integers (where appropriate) (e.g.: retr(1) and retr('1') both work equally well. Minimal Command Set: USER name user(name) PASS string pass_(string) STAT stat() LIST [msg] list(msg = None) RETR msg retr(msg) DELE msg dele(msg) NOOP noop() RSET rset() QUIT quit() Optional Commands (some servers support these): RPOP name rpop(name) APOP name digest apop(name, digest) TOP msg n top(msg, n) UIDL [msg] uidl(msg = None) CAPA capa() STLS stls() UTF8 utf8() Raises one exception: 'error_proto'. Instantiate with: POP3(hostname, port=110) NB: the POP protocol locks the mailbox from user authorization until QUIT, so be sure to get in, suck the messages, and quit, each time you access the mailbox. POP is a line-based protocol, which means large mail messages consume lots of python cycles reading them line-by-line. If it's available on your mail server, use IMAP4 instead, it doesn't suffer from the two problems above. zUTF-8c�����������������������Xl���������X l��������SU�l��������[��������R������������������"�SXU5������ �U�R������������������U5������U�l��������U�R������������������R������������������S5������U�l��������SU�l ��������U�R������������������5�������U�l��������g�)NFzpoplib.connect�rbr���)�host�port�_tls_established�sys�audit�_create_socket�sock�makefile�file� _debugging�_getresp�welcome)�selfr���r����timeouts��� r����__init__� POP3.__init__b���sa������� �� � %���� � �"�D��5��'�'��0�� ��I�I�&�&�t�,�� �����}�}���r ���c�����������������������Ub��U(�������d��[��������S5������e[��������R������������������"�U�R������������������U�R������������������4U5������$�)Nz0Non-blocking socket (timeout=0) is not supported)� ValueError�socket�create_connectionr���r���)r"���r#���s��� r���r����POP3._create_socketm���s6��������w��O�P�P��'�'����D�I�I�(>��H�Hr ���c�����������������������U�R�������������������S:���a��[��������S[��������U5������5������ �[��������R������������������"�SX5������ �U�R ������������������R ������������������U[��������-���5������ �g�)N����z*put*zpoplib.putline)r����print�reprr���r���r����sendall�CRLF�r"����lines��� r����_putline� POP3._putliner���s@�������?�?�Q���g�t�D�z� :�� � �"�D�/�� � ���$��+�&r ���c�����������������������U�R�������������������(�������a��[��������S[��������U5������5������ �[��������XR������������������5������nU�R������������������U5������ �g�)Nz*cmd*)r���r-���r.����bytes�encodingr3���r1���s��� r����_putcmd�POP3._putcmdz���s0�������?�?�E�'�4��:�6��T�=�=�)��� � �d�r ���c������������������d����U�R�������������������R������������������[��������S-���5������n[��������U5������[��������:���a��[ ��������S5������eU�R ������������������S:���a��[ ��������S[��������U5������5������ �U(�������d��[ ��������S5������e[��������U5������nUSS��[��������:X��a��US�S�U4$�US�S�[��������:X��a��USS�U4$�US�S�U4$�)Nr,���z line too longz*get*z-ERR EOF������) r����readline�_MAXLINE�lenr���r���r-���r.���r0����CR)r"���r2����octetss��� r����_getline� 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�����������������������U�R������������������5�������u��pU�R������������������S:���a��[��������S[��������U5������5������ �UR ������������������S5������(�������d��[��������U5������eU$�)Nr,���z*resp*����+)rB���r���r-���r.���� startswithr���)r"����resp�os��� r���r ���� POP3._getresp����sG�������-�-�/����?�?�Q���h��T� � ;����t�$�$��d�#�#��r ���c�����������������������U�R������������������5�������n/�nSnU�R������������������5�������u��pEUS:w��aO��UR������������������S5������(�������a ��US- ��nUSS��nX5-���nUR������������������U5������ �U�R������������������5�������u��pEUS:w��a��MO��XU4$�)Nr�������.s���..r,���)r ���rB���rF����append)r"���rG����listrA���r2���rH���s��� r����_getlongresp�POP3._getlongresp����s��������}�}�����A�6��-�-�/����d�l����u�%�%��a�C���A�B�x���Z�F��K�K����m�m�o�G�D� ��d�l���6�!�!r ���c������������������D�����U�R������������������U5������ �U�R������������������5�������$��N)r8���r ���r1���s��� r���� _shortcmd�POP3._shortcmd����s���������T���}�}��r ���c������������������D�����U�R������������������U5������ �U�R������������������5�������$�rQ���)r8���rN���r1���s��� r����_longcmd� POP3._longcmd����s���������T��� � �"�"r ���c�����������������������U�R�������������������$�rQ���)r!����r"���s��� r���� getwelcome�POP3.getwelcome����s�������|�|�r ���c�����������������������Xl���������g�rQ���)r���)r"����levels��� r����set_debuglevel�POP3.set_debuglevel����s�������r ���c������������������*�����U�R������������������SU-��5������$�)zFSend user name, return response (should indicate password required). zUSER %s�rR����r"����users��� r���rb���� POP3.user����s������ ��~�~�i�$�.�/�/r ���c������������������*�����U�R������������������SU-��5������$�)z�Send password, return response (response includes message count, mailbox size). NB: mailbox is locked by server from here to 'quit()' zPASS %sr`���)r"����pswds��� r����pass_� POP3.pass_����s��������~�~�i�$�.�/�/r ���c������������������6����U�R������������������S5������nUR������������������5�������nU�R������������������(�������a��[��������S[ ��������U5������5������ �[��������U5������S:��a��[ ��������S5������e�[��������US���5������n[��������US���5������nX44$�!�[���������a�� �[ ��������S5������ef�=�f)zMGet mailbox status. Result is tuple of 2 ints (message count, mailbox size) �STATz*stat*����zInvalid STAT response formatr,�������z.Invalid STAT response data: non-numeric values) rR����splitr���r-���r.���r?���r����intr'���)r"����retval�rets�numMessages�sizeMessagess��� r����stat� POP3.stat����s������� �����'���|�|�~���?�?�E�(�D��J�7� ��t�9�q�=��<�=�=� P��d�1�g�,�K��t�A�w�<�L���*�*����� P��N�O�O� P�s����#B��BNc������������������R�����Ub��U�R������������������SU-��5������$�U�R������������������S5������$�)z�Request listing, return result. Result without a message number argument is in form ['response', ['mesg_num octets', ...], octets]. Result when a message number argument is given is a single response: the "scan listing" for that message. zLIST %s�LIST�rR���rU����r"����whichs��� r���rM���� POP3.list����s-����������>�>�)�e�"3�4�4��}�}�V�$�$r ���c������������������*�����U�R������������������SU-��5������$�)z_Retrieve whole message number 'which'. Result is in form ['response', ['line', ...], octets]. zRETR %s�rU���rw���s��� r����retr� POP3.retr��s������ ��}�}�Y��.�/�/r ���c������������������*�����U�R������������������SU-��5������$�)z6Delete message number 'which'. Result is 'response'. zDELE %sr`���rw���s��� r����dele� POP3.dele��s������ ��~�~�i�%�/�0�0r ���c������������������$�����U�R������������������S5������$�)zHDoes nothing. One supposes the response indicates the server is alive. �NOOPr`���rX���s��� r����noop� POP3.noop��s������ ��~�~�f�%�%r ���c������������������$�����U�R������������������S5������$�)z(Unmark all messages marked for deletion.�RSETr`���rX���s��� r����rset� POP3.rset��s�������~�~�f�%�%r ���c������������������H�����U�R������������������S5������nU�R������������������5������� �U$�)zDSignoff: commit changes on server, unlock mailbox, close connection.�QUIT)rR����close)r"���rG���s��� r����quit� POP3.quit ��s�������~�~�f�%��� � ���r ���c������������������������U�R�������������������nSU�l���������Ub��UR������������������5������� �U�R������������������nSU�l��������Ub1���UR������������������[��������R ������������������5������ �UR������������������5������� �gg!�[���������a:��nUR������������������[��������R������������������:w��a��[��������USS5������S:w��a��e��SnANQSnAff�=�f!�UR������������������5������� �f�=�f!�U�R������������������nSU�l��������Ub����UR������������������[��������R ������������������5������ �OG!�[���������a:��nUR������������������[��������R������������������:w��a��[��������USS5������S:w��a��e��SnAOSnAff�=�fUR������������������5������� �f�!�UR������������������5������� �f�=�ff�=�f)z8Close the connection without assuming anything about it.N�winerrorr���i&'��) r���r����r����shutdownr(���� SHUT_RDWR�OSError�errno�ENOTCONN�getattr)r"���r���r����excs��� r���r����� POP3.close&��s)����� !��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��A0��0 B4�:0B/�*B7��/B4�4B7��7C �E2�$D�E� E�0E�>E�E�E�E2�E.�.E2c������������������*�����U�R������������������SU-��5������$�)z?Send RPOP command to access the mailbox with an alternate user.zRPOP %sr`���ra���s��� r����rpop� POP3.rpopB��s�������~�~�i�$�.�/�/r ���s���\+OK.[^<]*(<.*>)c������������������:����[��������X R������������������5������nU�R������������������R������������������U�R������������������5������nU(�������d��[��������S5������eSSKnUR������������������S5������U-���nUR������������������U5������R������������������5�������nU�R������������������SU<�SU<�35������$�)z�Authorisation - only possible if server has supplied a timestamp in initial greeting. Args: user - mailbox user; password - mailbox password. NB: mailbox is locked by server from here to 'quit()' z!-ERR APOP not supported by serverr���Nr,���zAPOP � )r6���r7���� timestamp�matchr!���r����hashlib�group�md5� hexdigestrR���)r"���rb����password�secret�mr�����digests��� r����apop� POP3.apopI��sy��������x���/���N�N� � ����.����A�B�B�������F�"�����V�$�.�.�0���~�~�d�F�;�<�<r ���c������������������4�����U�R������������������SU<�SU<�35������$�)z�Retrieve message header of message number 'which' and first 'howmuch' lines of message body. Result is in form ['response', ['line', ...], octets]. zTOP r����r{���)r"���rx����howmuchs��� r����top�POP3.top^��s��������}�}�E�7�;�<�<r ���c������������������R�����Ub��U�R������������������SU-��5������$�U�R������������������S5������$�)z�Return message digest (unique id) list. If 'which', result contains unique id for that message in the form 'response mesgnum uid', otherwise result is the list ['response', ['mesgnum uid', ...], octets] zUIDL %s�UIDLrv���rw���s��� r����uidl� POP3.uidlg��s-����������>�>�)�e�"3�4�4��}�}�V�$�$r ���c������������������$�����U�R������������������S5������$�)zITry to enter UTF-8 mode (see RFC 6856). Returns server response. �UTF8r`���rX���s��� r����utf8� POP3.utf8s��s��������~�~�f�%�%r ���c�����������������������S�n0�n�U�R������������������S5������nUS���nU�H��nU"�U5������u��pgXrU'���M��� �U$�!�[���������a�� �[��������S5������ef�=�f)a���Return server capabilities (RFC 2449) as a dictionary >>> c=poplib.POP3('localhost') >>> c.capa() {'IMPLEMENTATION': ['Cyrus', 'POP3', 'server', 'v2.2.12'], 'TOP': [], 'LOGIN-DELAY': ['0'], 'AUTH-RESP-CODE': [], 'EXPIRE': ['NEVER'], 'USER': [], 'STLS': [], 'PIPELINING': [], 'UIDL': [], 'RESP-CODES': []} >>> Really, according to RFC 2449, the cyrus folks should avoid having the implementation split into multiple arguments... c������������������T�����U�R������������������S5������R������������������5�������nUS���USS��4$�)N�asciir���r,���)�decoderl���)r2����lsts��� r���� _parsecap�POP3.capa.<locals>._parsecap���s-�������+�+�g�&�,�,�.�C��q�6�3�q�r�7�?�"r ����CAPAr,���z!-ERR CAPA not supported by server)rU���r���)r"���r�����capsrG����rawcaps�capline�capnm�capargss��� r����capa� POP3.capay��sn������ #���� C��=�=��(�D��1�g�G�"��!*�7�!3���%�U���#� ������� C��A�B�B� C�s ����-6��Ac����������������������[���������(�������d��[��������S5������eU�R������������������(�������a��[��������S5������eU�R������������������5�������nSU;��a��[��������S5������eUc��[��������R ������������������"�5�������nU�R ������������������S5������nUR������������������U�R������������������U�R������������������S9U�l��������U�R������������������R������������������S5������U�l��������SU�l��������U$�)zcStart a TLS session on the active connection as specified in RFC 2595. context - a ssl.SSLContext z-ERR TLS support missing�$-ERR TLS session already established�STLSz!-ERR STLS not supported by server��server_hostnamer���T)�HAVE_SSLr���r���r�����ssl�_create_stdlib_contextrR����wrap_socketr���r���r���r���)r"����contextr����rG���s��� r����stls� POP3.stls���s������� ��x��8�9�9�� � ��D�E�E��y�y�{����~��A�B�B��?��0�0�2�G��~�~�f�%���'�'�� � �8<� � ��(��C�� ��I�I�&�&�t�,�� � $����r ���)r���r���r���r���r���r���r!���rQ���))r���r ���r ���r����__doc__r7���� POP3_PORTr(����_GLOBAL_DEFAULT_TIMEOUTr$���r���r3���r8���rB���r ���rN���rR���rU���rY���r]���rb���rf���rr���rM���r|���r���r����r����r����r����r�����re�compiler����r����r����r����r����r����r����r���r���r ���r���r���r���3���s�������)�V��H�"+��7�7� '�I� '��!�*�"� �#�� �0�0�+�0%�0�1�&�&� �!�80� �� � �/�0�I�=�*=� %�&��:r ���c��������������������R�����\�rS�rSrSr\4\R������������������SS.S�jjrS�r S S�jr Srg) �POP3_SSLi���a��POP3 client class over SSL connection Instantiate with: POP3_SSL(hostname, port=995, context=None) hostname - the hostname of the pop3 over ssl server port - port number context - a ssl.SSLContext See the methods of the parent class POP3 for more documentation. N)r#���r����c�����������������l�����Uc��[���������R������������������"�5�������nX@l��������[��������R ������������������XX#5������ �g�rQ���)r����r����r����r���r$���)r"���r���r���r#���r����s��� r���r$����POP3_SSL.__init__���s(���������4�4�6��"�L��M�M�$�d�4r ���c������������������x�����[���������R������������������X5������nU�R������������������R������������������UU�R������������������S9nU$�)Nr����)r���r���r����r����r���)r"���r#���r���s��� r���r����POP3_SSL._create_socket���s:�������&�&�t�5�D��<�<�+�+�D�<@�I�I��,��G�D��Kr ���c�����������������������[��������S5������e)z�The method unconditionally raises an exception since the STLS command doesn't make any sense on an already established SSL/TLS session. r����)r���)r"���r����s��� r���r����� POP3_SSL.stls���s������ ��D�E�Er ���)r����rQ���)r���r ���r ���r���r����� POP3_SSL_PORTr(���r����r$���r���r����r���r���r ���r���r����r�������s,������ ��'4�� 5� &� >� >�� 5� � Fr ���r�����__main__r,���rk���rj���zMessage %d:z z-----------------------)'r����r����r����r(���r���r����r�����ImportError�__all__� Exceptionr���r����r����r@����LFr0���r>���r���r����rL���r����argv�ar-���rY���rb���rf���rM���rr����numMsgs� totalSize�range�ir|����header�msgrA���r2���r����r���r ���r����<module>r�������sy������ �� �� �� ����H���-� ���#�)��"�� � ��� ���� �� �"�u�����v��v�r��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����q �����H��s����E��E"�!E"