shell bypass 403

GrazzMean-Shell Shell

Uname: Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Software: LiteSpeed
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.213.251.212
Your Ip: 18.191.13.203
User: allssztx (535) | Group: allssztx (533)
Safe Mode: OFF
Disable Function:
NONE

name : imaplib.cpython-313.pyc
�

1}g������SrSrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSK	r	SSK
r
SSKJrJrJ
r
 SSKJr SSKrSr/SQrS	rSrS
rSrSrS
r0SS_SS_SS_SS_SS_SS_SS_SS_SS_SS_SS_SS_SS_S S_S!S_S"S_S#S_0S$S_S%S_S&S_S'S_S(S_S)S_S*S_S+S_S,S_S-S_S.S_S/S_S0S_S1S_S2S_S3S_S4S_ESSSSSSSSS5.Er\R6"S65r\R6"S75r\R6"S85r\R6"S9\R>5r \R6"S:5r!\R6"S;5r"\R6"S<5r#\R6"S=\R>5r$S9r%S=r&"S>S?5r'\(a"S@SA\'5r(\RSSA5 "SBSC\'5r*"SDSE5r+SFRYSG5r-\."\-SHS5VVs0sHupUR_5USH-_M snnr0SIr1SJr2SKr3SLr4\5SM:XGaSSK6r6SSK7r7\6Rl"\RpSHSSN5ur9r:Sr=\9H,ur>r<\>SP:Xa
\?"\<5rM\>SQ:XdM\<r=\:(aM)\=4r:M. \:(dSRr:\:Sr@\7R�"5rB\7Rn"SS\B<ST\@=(d SU<SV35rCSW\BSXSY.-rDSZ\B\C44S[S\S]S^S_SS\D44S`SaSbScSdSeSfSgSh4rESiSjSkSlS^SSS\D44SgSm4rFSnrG\=(a	\*"\=5rHO\'"\@5rH\HR�So:Xa\ESHSrE\HR�Sp\HR�-5 \HR�Sq\HR�<35 \EHurMr:\G"\M\:5 M \G"SrSs5HLrN\R�"St\N5rP\P(a\PR�SH5rRO\NRY5SurR\G"Sv\R45 MN \FHGurMr:\G"\M\:5rS\M\:4Sk:waM\SSuRY5rT\T(dM5\G"SwSSx\TSu-Sy45 MI \U"Sz5 gg!\a SrGN�f=fs snnf!\6Rvar<SOur9r:Sr<C<GNSr<C<ff=f! \U"S{5 \(d\U"S|\RpS-5 e=f)}z�IMAP4 client.

Based on RFC 2060.

Public class:           IMAP4
Public variable:        Debug
Public functions:       Internaldate2tuple
                        Int2AP
                        ParseFlags
                        Time2Internaldate
z2.58�N)�datetime�timezone�	timedelta)�DEFAULT_BUFFER_SIZETF)�IMAP4�IMAP4_stream�Internaldate2tuple�Int2AP�
ParseFlags�Time2Internaldate�
�i�)�	IMAP4REV1ri@B�APPEND)�AUTH�SELECTED�AUTHENTICATE)�NONAUTH�
CAPABILITY)rrr�LOGOUT�CHECK)r�CLOSE�COPY�CREATE�DELETE�	DELETEACL�ENABLE)r�EXAMINE�EXPUNGE�FETCH�GETACL�
GETANNOTATION�GETQUOTA�GETQUOTAROOT�MYRIGHTS�LIST�LOGINr�LSUB�MOVE�	NAMESPACE�NOOP�PARTIAL�	PROXYAUTH�RENAME�SEARCH�SELECT�SETACL�
SETANNOTATION�SETQUOTA�SORT)�STARTTLS�STATUS�STORE�	SUBSCRIBE�THREAD�UID�UNSUBSCRIBE�UNSELECTs\+( (?P<data>.*))?s.*FLAGS \((?P<flags>[^\)]*)\)s�.*INTERNALDATE "(?P<day>[ 0123][0-9])-(?P<mon>[A-Z][a-z][a-z])-(?P<year>[0-9][0-9][0-9][0-9]) (?P<hour>[0-9][0-9]):(?P<min>[0-9][0-9]):(?P<sec>[0-9][0-9]) (?P<zonen>[-+])(?P<zoneh>[0-9][0-9])(?P<zonem>[0-9][0-9])"s.*{(?P<size>\d+)}$s
\r\n|\r|\ns%\[(?P<type>[A-Z-]+)( (?P<data>.*))?\]s$\* (?P<type>[A-Z-]+)( (?P<data>.*))?s3\* (?P<data>\d+) (?P<type>[A-Z-]+)( (?P<data2>.*))?c�P�\rSrSrSr"SS\5r"SS\5r"SS\5rS	\	S
4Sjr
SrS
rSr
SrSrSrSrS	\	S
4SjrSrSrSrSrSrSrSrSrSrSrSrSrS rS!r S"r!S#r"S$r#S%r$S&r%S'r&S(r'S)r(S*r)SXS+jr*S,r+S-r,S.r-S/r.SXS0jr/S1r0S2r1S3r2S4r3S5r4S6r5S7r6SYS8jr7S9r8S:r9S;r:S<r;SZS=jr<S>r=S?r>S@r?SAr@SBrASCrBSDrCSErDSFrESGrFSHrGSIrHSJrISKrJS[SLjrKSMrLSNrMSOrNSPrOSQrPSRrQSZSSjrRSTrSSUrTSVrUSWrVg
)\r�aIMAP4 client class.

Instantiate with: IMAP4([host[, port[, timeout=None]]])

        host - host's name (default: localhost);
        port - port number (default: standard IMAP4 port).
        timeout - socket timeout (default: None)
                  If timeout is not given or is None,
                  the global default socket timeout is used

All IMAP4rev1 commands are supported by methods of the same
name (in lowercase).

All arguments to commands are converted to strings, except for
AUTHENTICATE, and the last argument to APPEND which is passed as
an IMAP4 literal.  If necessary (the string contains any
non-printing characters or white-space and isn't enclosed with
either parentheses or double quotes) each string is quoted.
However, the 'password' argument to the LOGIN command is always
quoted.  If you want to avoid having an argument string quoted
(eg: the 'flags' argument to STORE) then enclose the string in
parentheses (eg: "(\Deleted)").

Each command returns a tuple: (type, [data, ...]) where 'type'
is usually 'OK' or 'NO', and 'data' is either the text from the
tagged response, or untagged results from command. Each 'data'
is either a string, or a tuple. If a tuple, then the first part
is the header of the response, and the second part contains
the data (ie: 'literal' value).

Errors raise the exception class <instance>.error("<reason>").
IMAP4 server errors raise <instance>.abort("<reason>"),
which is a sub-class of 'error'. Mailbox status changes
from READ-WRITE to READ-ONLY raise the exception class
<instance>.readonly("<reason>"), which is a sub-class of 'abort'.

"error" exceptions imply a program error.
"abort" exceptions imply the connection should be reset, and
        the command re-tried.
"readonly" exceptions imply the command should be re-tried.

Note: to use this module, you must read the RFCs pertaining to the
IMAP4 protocol, as the semantics of the arguments to each IMAP4
command are left to the invoker, not to mention the results. Also,
most IMAP servers implement a sub-set of the commands available here.
c��\rSrSrSrg)�IMAP4.error��N��__name__�
__module__�__qualname__�__firstlineno__�__static_attributes__rB��./opt/alt/python313/lib64/python3.13/imaplib.py�errorr@�s��DrIrKc��\rSrSrSrg)�IMAP4.abort�rBNrCrBrIrJ�abortrM�s��rIrOc��\rSrSrSrg)�IMAP4.readonly�rBNrCrBrIrJ�readonlyrQ�s��4rIrS�Nc�P�[UlSUlSUl0Ul0UlSUlSUlSUlSUl	UR5 URXU5 UR5 g![a# UR5 e![a ef=ff=f)NrrTFr)�Debug�debug�state�literal�tagged_commands�untagged_responses�continuation_response�is_readonly�tagnum�_tls_established�_mode_ascii�open�_connect�	Exception�shutdown�OSError��self�host�port�timeouts    rJ�__init__�IMAP4.__init__�s�����
���
����!���"$���%'��"� ������ %�������	
�	�	�$�g�&�	��M�M�O���	�
��
�
��
���
���
��	�s0�'A8�8
B%�B�B%�
B!�B%� B!�!B%c���SUlSUl[R"[[R
5Ul[R"[[R
5Ulg)NF�ascii)	�utf8_enabled�	_encoding�re�compile�_Literal�ASCII�Literal�_Untagged_status�Untagged_status�rgs rJr`�IMAP4._mode_ascii�s?��!��� ����z�z�(�B�H�H�5���!�z�z�*:�B�H�H�E��rIc��SUlSUl[R"[5Ul[R"[5Ulg)NT�utf-8)rorprqrrrsrurvrwrxs rJ�
_mode_utf8�IMAP4._mode_utf8�s3�� ��� ����z�z�(�+���!�z�z�*:�;��rIc�"�[[R"SS55Ul[R
"SUR-S-[R5UlSUlSUl	0Ul
URS:�a6URS[-5 URS	UR-5 UR5UlS
UR ;aSUlO3SUR ;aS
UlOUR%UR5eUR'5 URS:�aURSUR(<35 [*HnXR(;aMXl g UR%S5e)Nii��s(?P<tag>s"\d+) (?P<type>[A-Z]+) (?P<data>.*)�
r�zimaplib version %sznew IMAP4 connection, tag=%s�PREAUTHr�OKr�zCAPABILITIES: zserver not IMAP4 compliant)r
�random�randint�tagprerqrrrt�tagre�_cmd_log_len�_cmd_log_idx�_cmd_logrW�_mesg�__version__�
_get_response�welcomer[rXrK�_get_capabilities�capabilities�AllowedVersions�PROTOCOL_VERSION)rg�versions  rJrb�IMAP4._connect�sI���V�^�^�D�%�8�9����Z�Z���+�+�!&�@�!A�BD�(�(�L��
�� "�D�� !�D���D�M��z�z�Q���
�
�/�+�=�>��
�
�9�D�K�K�G�H��)�)�+�����/�/�/��D�J�
�T�,�,�
,�"�D�J��*�*�T�\�\�*�*���� ���z�z�Q���
�
��1B�1B�D�E�&�G��/�/�/��$+�!��	'��j�j�5�6�6rIc�d�U[;a[XR55$[SU-5e)NzUnknown IMAP4 command: '%s')�Commands�getattr�lower�AttributeError)rg�attrs  rJ�__getattr__�IMAP4.__getattr__
s,���8���4����.�.��:�T�A�B�BrIc��U$�NrBrxs rJ�	__enter__�IMAP4.__enter__s���rIc�h�URS:XagUR5 g![a gf=f)Nr)rX�logoutre)rg�argss  rJ�__exit__�IMAP4.__exit__s1���:�:��!��	��K�K�M���	��	�s�$�
1�1c�:�UbU(d[S5eUR(dSOURn[R"SXRUR5 X R4nUb[
R"X15$[
R"U5$)Nz0Non-blocking socket (timeout=0) is not supportedzimaplib.open)�
ValueErrorrh�sys�auditri�socket�create_connection)rgrjrh�addresss    rJ�_create_socket�IMAP4._create_socket#su����w��O�P�P��9�9�t�$�)�)���	�	�.�$�	�	�4�9�9�=����#�����+�+�G�=�=��'�'��0�0rIc��XlX lURU5UlURR	S5Ulg)z�Setup connection to remote server on "host:port"
    (default: localhost:standard IMAP4 port).
This connection will be used by the routines:
    read, readline, send, shutdown.
�rbN)rhrir��sock�makefile�filerfs    rJra�
IMAP4.open0s6���	��	��'�'��0��	��I�I�&�&�t�,��	rIc�8�URRU5$�zRead 'size' bytes from remote.)r��read�rg�sizes  rJr��
IMAP4.read<s���y�y�~�~�d�#�#rIc��URR[S-5n[U5[:�aUR	S[-5eU$)�Read line from remote.r�zgot more than %d bytes)r��readline�_MAXLINE�lenrK�rg�lines  rJr��IMAP4.readlineAs@���y�y�!�!�(�Q�,�/���t�9�x���*�*�5��@�A�A��rIc�h�[R"SX5 URRU5 g)�Send data to remote.zimaplib.sendN)r�r�r��sendall�rg�datas  rJ�send�
IMAP4.sendIs"���	�	�.�$�-��	�	���$�rIc��URR5 URR[R
5 URR5 g![a:nUR[R:wa[USS5S:waeSnANZSnAff=f!URR5 f=f)� Close I/O established in "open".�winerrorri&'N)
r��closer�rdr��	SHUT_RDWRre�errno�ENOTCONNr�)rg�excs  rJrd�IMAP4.shutdownOs����	�	����
	��I�I���v�/�/�0�
�I�I�O�O����	��	�	�U�^�^�+��3�
�A�.�%�7����
	��
�I�I�O�O��s)�)A � 
B$�*0B�B'�B$�$B'�'Cc��UR$)zVReturn socket instance used to connect to IMAP4 server.

socket = <instance>.socket()
)r�rxs rJr��IMAP4.socket_s��
�y�y�rIc��SnURSS/U5up#US(aX#4$UR5up#URX#U5$)z�Return most recent 'RECENT' responses if any exist,
else prompt server for an update using the 'NOOP' command.

(typ, [data]) = <instance>.recent()

'data' is None if no new messages,
else list of RECENT responses, most recent last.
�RECENTr�N���)�_untagged_response�noop�rg�name�typ�dats    rJ�recent�IMAP4.recentksO�����*�*�4�$���>����r�7��8�O��9�9�;����&�&�s��6�6rIc�F�URUS/UR55$)z�Return data for response 'code' if received, or None.

Old value for response 'code' is cleared.

(code, [data]) = <instance>.response(code)
N)r��upper)rg�codes  rJ�response�IMAP4.response|s!���&�&�t�d�V�T�Z�Z�\�B�BrIc��SnU(dSnU(aUSUS4S:waSU-nOSnU(a[U5nOSn[R[U5nUR(aSU-S	-nX`lUR
XQX#5$)
z�Append message to named mailbox.

(typ, [data]) = <instance>.append(mailbox, flags, date_time, message)

        All args except `message' can be None.
r�INBOXrr���(�)�(%s)NsUTF8 (�))r�MapCRLF�sub�CRLFrorY�_simple_command)rg�mailbox�flags�	date_time�messager�rYs       rJ�append�IMAP4.append�s�������G���a���r��#�y�0�������E��)�)�4�I��I��+�+�d�G�,������'�)�D�0�G����#�#�D�5�D�DrIc���UR5n[U5RUlUR	SU5upEUS:wa$URUSR
SS55eSUlXE4$)a#Authenticate command - requires response processing.

'mechanism' specifies which authentication mechanism is to
be used - it must appear in <instance>.capabilities in the
form AUTH=<mechanism>.

'authobject' must be a callable object:

        data = authobject(response)

It will be called to process server continuation responses; the
response argument it is passed will be a bytes.  It should return bytes
data that will be base64 encoded and sent to the server.  It should
return None if the client abort response '*' should be sent instead.
rr�r�r{�replacer)r��_Authenticator�processrYr�rK�decoderX)rg�	mechanism�
authobject�mechr�r�s      rJ�authenticate�IMAP4.authenticate�sk�� ��� ��
&�j�1�9�9����'�'���=����$�;��*�*�S��W�^�^�G�Y�?�@�@���
��x�rIc�P�SnURU5up#URX#U5$)zL(typ, [data]) = <instance>.capability()
Fetch capabilities list from server.r�r�r�r�s    rJ�
capability�IMAP4.capability�s.�����'�'��-����&�&�s��6�6rIc�$�URS5$)zBCheckpoint mailbox on server.

(typ, [data]) = <instance>.check()
r�r�rxs rJ�check�IMAP4.check�s��
�#�#�G�,�,rIc�V�URS5upSUlX4$!SUlf=f)z�Close currently selected mailbox.

Deleted messages are removed from writable mailbox.
This is the recommended command before 'LOGOUT'.

(typ, [data]) = <instance>.close()
rr�r�rX�rgr�r�s   rJr��IMAP4.close�s2��	 ��+�+�G�4�H�C��D�J��x��� �D�J����	(c�&�URSX5$)zrCopy 'message_set' messages onto end of 'new_mailbox'.

(typ, [data]) = <instance>.copy(message_set, new_mailbox)
rr)rg�message_set�new_mailboxs   rJ�copy�
IMAP4.copy�s��
�#�#�F�K�E�ErIc�&�URSU5$)z@Create new mailbox.

(typ, [data]) = <instance>.create(mailbox)
rr�rgr�s  rJ�create�IMAP4.create����
�#�#�H�g�6�6rIc�&�URSU5$)z@Delete old mailbox.

(typ, [data]) = <instance>.delete(mailbox)
rrrs  rJ�delete�IMAP4.delete�rrIc�&�URSX5$)zpDelete the ACLs (remove any rights) set for who on mailbox.

(typ, [data]) = <instance>.deleteacl(mailbox, who)
rr)rgr��whos   rJ�	deleteacl�IMAP4.deleteacl�s��
�#�#�K��>�>rIc���SUR;a[RS5eURSU5up#US:Xa$SUR	5;aUR5 X#4$)z\Send an RFC5161 enable string to the server.

(typ, [data]) = <instance>.enable(capability)
rzServer does not support ENABLEr�zUTF8=ACCEPT)r�rrKr�r�r|)rgrr�r�s    rJ�enable�IMAP4.enable�s_��
�4�,�,�,��+�+�>�?�?��(�(��:�>�	���$�;�=�J�,<�,<�,>�>��O�O���y�rIc�P�SnURU5up#URX#U5$)z�Permanently remove deleted items from selected mailbox.

Generates 'EXPUNGE' response for each deleted message.

(typ, [data]) = <instance>.expunge()

'data' is list of 'EXPUNGE'd message numbers in order received.
rrr�s    rJ�expunge�
IMAP4.expunges.�����'�'��-����&�&�s��6�6rIc�R�SnURX1U5upEURXEU5$)z�Fetch (parts of) messages.

(typ, [data, ...]) = <instance>.fetch(message_set, message_parts)

'message_parts' should be a string of selected parts
enclosed in parentheses, eg: "(UID BODY[TEXT])".

'data' are tuples of message part envelope and data.
r r)rgr�
message_partsr�r�r�s      rJ�fetch�IMAP4.fetchs0�����'�'��=�I����&�&�s��6�6rIc�N�URSU5up#URX#S5$)zHGet the ACLs for a mailbox.

(typ, [data]) = <instance>.getacl(mailbox)
r!�ACLr�rgr�r�r�s    rJ�getacl�IMAP4.getacl(s+��
�'�'��'�:����&�&�s��7�7rIc�P�URSXU5upEURXES5$)zY(typ, [data]) = <instance>.getannotation(mailbox, entry, attribute)
Retrieve ANNOTATIONs.r"�
ANNOTATIONr)rgr��entry�	attributer�r�s      rJ�
getannotation�IMAP4.getannotation1s-���'�'����S����&�&�s��>�>rIc�N�URSU5up#URX#S5$)z�Get the quota root's resource usage and limits.

Part of the IMAP4 QUOTA extension defined in rfc2087.

(typ, [data]) = <instance>.getquota(root)
r#�QUOTAr)rg�rootr�r�s    rJ�getquota�IMAP4.getquota9s+���'�'�
�D�9����&�&�s��9�9rIc��URSU5up#URX#S5up$URX#S5up%X%U/4$)z�Get the list of quota roots for the named mailbox.

(typ, [[QUOTAROOT responses...], [QUOTA responses]]) = <instance>.getquotaroot(mailbox)
r$r4�	QUOTAROOTr)rgr�r�r��quota�	quotaroots      rJ�getquotaroot�IMAP4.getquotarootDsN��
�'�'���@����,�,�S�w�?�
���0�0��;�G�����&�&�&rIc�R�SnURX1U5upEURXEU5$)z�List mailbox names in directory matching pattern.

(typ, [data]) = <instance>.list(directory='""', pattern='*')

'data' is list of LIST responses.
r&r�rg�	directory�patternr�r�r�s      rJ�list�
IMAP4.listO�0�����'�'���A����&�&�s��6�6rIc��URSXRU55up4US:waURUS5eSUlX44$)z|Identify client using plaintext password.

(typ, [data]) = <instance>.login(user, password)

NB: 'password' will be quoted.
r'r�r�r)r��_quoterKrX)rg�user�passwordr�r�s     rJ�login�IMAP4.login[sI���'�'���{�{�8�7L�M����$�;��*�*�S��W�%�%���
��x�rIc�V�XsUlUlURSUR5$)zaForce use of CRAM-MD5 authentication.

(typ, [data]) = <instance>.login_cram_md5(user, password)
zCRAM-MD5)rGrHr��_CRAM_MD5_AUTH)rgrGrHs   rJ�login_cram_md5�IMAP4.login_cram_md5is+��
$(� ��	�4�=�� � ��T�-@�-@�A�ArIc��SSKn[UR[5(aURR	S5OURnUR
S-UR
X1S5R5-$)z0Authobject to use with CRAM-MD5 authentication. rNr{� �md5)�hmac�
isinstancerH�str�encoderG�HMAC�	hexdigest)rg�	challengerR�pwds    rJrL�IMAP4._CRAM_MD5_AUTHrsZ���0:�4�=�=�#�0N�0N�t�}�}�#�#�G�,�26�-�-�	��y�y�3�����3�5�!A�!K�!K�!M�M�MrIc�\�SUlURS5upUR5 X4$)zdShutdown connection to server.

(typ, [data]) = <instance>.logout()

Returns server 'BYE' response.
r)rXr�rdr
s   rJr��IMAP4.logoutzs-����
��'�'��1����
�
���x�rIc�R�SnURX1U5upEURXEU5$)z�List 'subscribed' mailbox names in directory matching pattern.

(typ, [data, ...]) = <instance>.lsub(directory='""', pattern='*')

'data' are tuples of message part envelope and data.
r(rr?s      rJ�lsub�
IMAP4.lsub�rDrIc�N�URSU5up#URX#S5$)zsShow my ACLs for a mailbox (i.e. the rights that I have on mailbox).

(typ, [data]) = <instance>.myrights(mailbox)
r%rr*s    rJ�myrights�IMAP4.myrights�s+��
�&�&�z�7�;����&�&�s��<�<rIc�P�SnURU5up#URX#U5$)zQReturns IMAP namespaces ala rfc2342

(typ, [data, ...]) = <instance>.namespace()
r*rr�s    rJ�	namespace�IMAP4.namespace�s.��
���'�'��-����&�&�s��6�6rIc�|�URS:�aURUR5 URS5$)z6Send NOOP command.

(typ, [data]) = <instance>.noop()
r�r+)rW�_dump_urr[r�rxs rJr��
IMAP4.noop�s5��
��z�z�Q���
�
�d�5�5�6��#�#�F�+�+rIc�T�SnURXQX#U5upgURXgS5$)z�Fetch truncated part of a message.

(typ, [data, ...]) = <instance>.partial(message_num, message_part, start, length)

'data' is tuple of message part envelope and data.
r,r r)rg�message_num�message_part�start�lengthr�r�r�s        rJ�partial�
IMAP4.partial�s3�����'�'��<�PV�W����&�&�s��9�9rIc�*�SnURSU5$)z�Assume authentication as "user".

Allows an authorised administrator to proxy into any user's
mailbox.

(typ, [data]) = <instance>.proxyauth(user)
r-r)rgrGr�s   rJ�	proxyauth�IMAP4.proxyauth�s�����#�#�K��6�6rIc�&�URSX5$)z[Rename old mailbox name to new.

(typ, [data]) = <instance>.rename(oldmailbox, newmailbox)
r.r)rg�
oldmailbox�
newmailboxs   rJ�rename�IMAP4.rename�s��
�#�#�H�j�E�ErIc���SnU(a>UR(a[RS5eUR"USU/UQ76upEOUR"U/UQ76upEUR	XEU5$)z�Search mailbox for matching messages.

(typ, [data]) = <instance>.search(charset, criterion, ...)

'data' is space separated list of matching message numbers.
If UTF8 is enabled, charset MUST be None.
r/z'Non-None charset not valid in UTF8 mode�CHARSET)rorrKr�r�)rg�charset�criteriar�r�r�s      rJ�search�IMAP4.search�sl������ � ��k�k�"K�L�L��+�+�D�)�W�P�x�P�H�C���+�+�D�<�8�<�H�C��&�&�s��6�6rIc�r�0UlX lU(aSnOSnURX15upEUS:wa
SUlXE4$SUlSUR;aGU(d@URS:�aURUR5 UR
SU-5eX@RRS	S
/54$)aDSelect a mailbox.

Flush all untagged responses.

(typ, [data]) = <instance>.select(mailbox='INBOX', readonly=False)

'data' is count of messages in mailbox ('EXISTS' response).

Mandated responses are ('FLAGS', 'EXISTS', 'RECENT', 'UIDVALIDITY'), so
other responses should be obtained via <instance>.response('FLAGS') etc.
rr0r�rr�	READ-ONLYr�z%s is not writable�EXISTSN)r[r]r�rXrWrgrS�get)rgr�rSr�r�r�s      rJ�select�IMAP4.select�s���#%���#����D��D��'�'��6����$�;��D�J��8�O���
��$�1�1�1� ���:�:��?��M�M�$�"9�"9�:��-�-� 4�w� >�?�?��+�+�/�/��4�&�A�A�ArIc�(�URSXU5$)zJSet a mailbox acl.

(typ, [data]) = <instance>.setacl(mailbox, who, what)
r1r)rgr�r�whats    rJ�setacl�IMAP4.setacls��
�#�#�H�g�D�A�ArIc�P�UR"S/UQ76up#URX#S5$)zW(typ, [data]) = <instance>.setannotation(mailbox[, entry, attribute]+)
Set ANNOTATIONs.r2r.r)rgr�r�r�s    rJ�
setannotation�IMAP4.setannotation
s.���'�'��?�$�?����&�&�s��>�>rIc�N�URSX5up4URX4S5$)zYSet the quota root's resource limits.

(typ, [data]) = <instance>.setquota(root, limits)
r3r4r)rgr5�limitsr�r�s     rJ�setquota�IMAP4.setquotas+��
�'�'�
�D�A����&�&�s��9�9rIc�|�SnUSUS4S:waSU-nUR"XAU/UQ76upVURXVU5$)zqIMAP4rev1 extension SORT command.

(typ, [data]) = <instance>.sort(sort_criteria, charset, search_criteria, ...)
r4rr�r�r�r)rg�
sort_criteriarz�search_criteriar�r�r�s       rJ�sort�
IMAP4.sortsX��
��
�!��]�2�.�/�9�<�"�]�2�M��'�'��W�W��W����&�&�s��6�6rIc�,�Sn[(dURS5eUR(aURS5eX R;aURS5eUc[
R"5nURU5up4US:XaaURURURS9Ul	URRS5UlSUlUR5 OURS	5eURX4U5$)
Nr5zSSL support missingzTLS session already establishedzTLS not supported by serverr���server_hostnamer�TzCouldn't establish TLS session)�HAVE_SSLrKr_rOr��ssl�_create_stdlib_contextr��wrap_socketr�rhr�r�r�r�)rg�ssl_contextr�r�r�s     rJ�starttls�IMAP4.starttls)s������x��*�*�2�3�3�� � ��*�*�>�?�?��(�(�(��*�*�:�;�;����4�4�6�K��'�'��-����$�;�#�/�/��	�	�@D�	�	�0�K�D�I��	�	�*�*�4�0�D�I�$(�D�!��"�"�$��*�*�=�>�>��&�&�s��6�6rIc�R�SnURX1U5upEURXEU5$)z`Request named status conditions for mailbox.

(typ, [data]) = <instance>.status(mailbox, names)
r6r)rgr��namesr�r�r�s      rJ�status�IMAP4.status@s2��
���'�'��u�=����&�&�s��6�6rIc�v�USUS4S:waSU-nURSXU5upEURXES5$)zqAlters flag dispositions for messages in mailbox.

(typ, [data]) = <instance>.store(message_set, command, flags)
rr�r�r�r7r r)rgr�commandr�r�r�s      rJ�store�IMAP4.storeLsK��

�!�H�U�2�Y��9�,��U�N�E��'�'���u�M����&�&�s��9�9rIc�&�URSU5$)zISubscribe to new mailbox.

(typ, [data]) = <instance>.subscribe(mailbox)
r8rrs  rJ�	subscribe�IMAP4.subscribeWs��
�#�#�K��9�9rIc�V�SnUR"XAU/UQ76upVURXVU5$)z{IMAPrev1 extension THREAD command.

(type, [data]) = <instance>.thread(threading_algorithm, charset, search_criteria, ...)
r9r)rg�threading_algorithmrzr�r�r�r�s       rJ�thread�IMAP4.thread_s5��
���'�'��7�]�_�]����&�&�s��6�6rIc�n�UR5nU[;aURSU-5eUR[U;a=URSU<SUR<SSR	[U5<35eSnUR
"X1/UQ76upEUS;aUnOSnUR
XEU5$)	z�Execute "command arg ..." with messages identified by UID,
        rather than message number.

(typ, [data]) = <instance>.uid(command, arg1, arg2, ...)

Returns response appropriate to 'command'.
zUnknown IMAP4 UID command: %s�command � illegal in state �, only allowed in states �, r:)r/r4r9r )r�r�rKrX�joinr�r�)rgr�r�r�r�r�s      rJ�uid�	IMAP4.uidis����-�-�/���(�"��*�*�<�w�F�G�G��:�:�X�g�.�.��*�*�%�t�z�z�"�i�i���(9�:�<�=�
=����'�'��=��=����2�2��D��D��&�&�s��6�6rIc�&�URSU5$)zOUnsubscribe from old mailbox.

(typ, [data]) = <instance>.unsubscribe(mailbox)
r;rrs  rJ�unsubscribe�IMAP4.unsubscribe�s��
�#�#�M�7�;�;rIc�V�URS5upSUlX4$!SUlf=f)aFree server's resources associated with the selected mailbox
and returns the server to the authenticated state.
This command performs the same actions as CLOSE, except
that no messages are permanently removed from the currently
selected mailbox.

(typ, [data]) = <instance>.unselect()
r<rr	)rgr�r�s   rJ�unselect�IMAP4.unselect�s3��	 ��,�,�Z�8�I�C��D�J��y��� �D�J�rc��UR5nU[;aUR4[U'UR"U/UQ76$)z�Allow simple extension commands
        notified by server in CAPABILITY response.

Assumes command is legal in current state.

(typ, [data]) = <instance>.xatom(name, arg, ...)

Returns response appropriate to extension command `name'.
)r�r�rXr��rgr�r�s   rJ�xatom�IMAP4.xatom�s>���z�z�|���x��"�j�j�]�H�T�N��#�#�D�0�4�0�0rIc���UcSnURnURS:�a7URSU<S[UR	US55<SU<S35 X;aX1RU5 gU/X1'g)NrI��untagged_responses[z] rTz += ["z"])r[rWr�r�r�r�)rgr�r��urs    rJ�_append_untagged�IMAP4._append_untagged�sh���;��C�
�
$�
$����z�z�Q���
�
��c�"�&�&��R�.�1�3�8�9��9��G�N�N�3���e�B�GrIc��URRS5nU(a.URUSRURS55eg)N�BYEr�r�)r[r�rOr�rp)rg�byes  rJ�
_check_bye�IMAP4._check_bye�sB���%�%�)�)�%�0����*�*�S��W�^�^�D�N�N�I�F�G�G�rIc���UR[U;aDSUlURSU<SUR<SSR	[U5<35eSH!nX0R
;dMUR
U	M# SUR
;a"UR(dURS5eUR5n[XR5nUS-U-nUH:nUcM[U[5(a[X`R5nUS-U-nM< URnUbRSUl[U5[UR5LaUnO'SnU[S	[U5-UR5-nUR S
:�aUR#SU-5 OUR%SU-5 UR'U[(-5 UcU$UR/5(a-UR0U(aU$UR/5(aM-W(aU"UR25nUR S
:�aUR#S
[U5-5 UR'U5 UR'[(5 U(dU$M�![*an	UR-SU	-5eSn	A	ff=f![*an	UR-SU	-5eSn	A	ff=f)Nr�r�r�r��r��NO�BADrz#mailbox status changed to READ-ONLY� z {%s}�z> %rzsocket error: %szwrite literal size %s)rXr�rYrKr�r[r]rS�_new_tag�bytesrprSrT�type�_commandr�rWr��_logr�r�rerOr�rZr\)
rgr�r�r��tagr��argrY�	literator�vals
          rJr��IMAP4._command�s����:�:�X�d�^�+��D�L��*�*�"�D�J�J�"�i�i����7�9�:�
:�
'�C��-�-�-��+�+�C�0�'��$�1�1�1�� � ��-�-� E�F�F��m�m�o���T�>�>�*���T�z�D� ���C��{�H��#�s�#�#��C���0���$�;��$�D�	��,�,�����D�L��G�}��T�]�]� 3�3�#�	� �	��e�G�c�'�l�$:�D�N�N�K�K����z�z�Q���
�
�6�D�=�)��	�	�&�4�-�(�	7��I�I�d�T�k�"��?��J���$�$�&�&��'�'��,��J��$�$�&�&��#�D�$>�$>�?����:�:��?��J�J�6��W��E�F�
;��	�	�'�"��	�	�$�����
�3��
�	7��*�*�/�#�5�6�6��	7��2�
;��j�j�!3�c�!9�:�:��
;�s0�>J�&&J>�
J;�"J6�6J;�>
K!�K�K!c��US:HnU(dUR5 URX#S9upEU(dUR5 US:XaURU<SU<SU<35eXE4$!URanURSU<SU<35eSnAfURanURSU<SU<35eSnAff=f)Nr)�
expect_byez	command: � => r�z command error: rP)r��_get_tagged_responserOrK)rgr�r�r�r�r�r�s       rJ�_command_complete�IMAP4._command_completes����(�"����O�O��	@��1�1�#�1�I�I�C�
��O�O���%�<��*�*�$��T�J�K�K��y����z�z�	@��*�*�D�#�>�?�?���z�z�	@��*�*�D�#�>�?�?��	@�s#�A+�+C�;B�C�'C�Cc���UR5upUS/:XaURS5e[USUR5nUR	5n[UR
55Ulg)Nz"no CAPABILITY response from serverr�)rrKrTrpr��tuple�splitr�r
s   rJr��IMAP4._get_capabilities#s[���?�?�$����4�&�=��*�*�A�B�B��#�b�'�4�>�>�*���i�i�k��!�#�)�)�+�.��rIc���UR5nURURU5(a�URR	S5nX R
;aUR
SU-5eURR	S5n[X0R5nURR	S5nX4/4UR
U'GO�SnUR[U5(d<URURU5(aURR	S5nURcPUR[U5(a!URR	S5UlgUR
SU-5eURR	S5n[X0R5nURR	S5nUcSnU(aUS-U-nURURU5(a�[URR	S	55nURS
:�aUR!SU-5 UR#U5nUR%X4U45 UR5nURURU5(aM�UR%X45 US;auUR[&U5(aZURR	S5n[X0R5nUR%X0RR	S55 URS
:�aUS;aUR!U<SU<35 U$)Nr�zunexpected tagged response: %rr�r��data2zunexpected response: %rrIr�r�r�zread literal size %sr�r�)r�r�r�z response: )�	_get_line�_matchr��mo�grouprZrOrTrp�Untagged_responserw�Continuationr\ru�intrWr�r�r��
Response_code)rg�respr�r�r��dat2r�r�s        rJr��IMAP4._get_response,s����~�~����;�;�t�z�z�4�(�(��'�'�-�-��&�C��.�.�.��j�j�!A�D�!H�I�I��'�'�-�-��'�C��c�>�>�*�C��'�'�-�-��'�C�),�e��D� � ��%��D��;�;�0�$�7�7��;�;�t�3�3�T�:�:��7�7�=�=��1�D��w�w���;�;�|�T�2�2�15�����v�1F�D�.���j�j�!:�T�!A�B�B��'�'�-�-��'�C��c�>�>�*�C��'�'�-�-��'�C��{�#�C��3��:��,�S��+�+�d�l�l�C�0�0��4�7�7�=�=��0�1����z�z�Q���
�
�#9�D�#@�A��y�y�����%�%�c��;�7��n�n�&��!�+�+�d�l�l�C�0�0�$
�!�!�#�+��%�%�$�+�+�m�S�*I�*I��'�'�-�-��'�C��c�>�>�*�C��!�!�#�w�w�}�}�V�'<�=���z�z�Q��3�*>�#>��
�
��S�9�:��rIc�V�URUnUbURU	U$U(a$SnURRUS5nUbXE4$UR5 UR	5 Mo!UR
a'nURS:�aUR5 eSnAff=f)Nr�r�)rZr[�popr�r�rOrW�	print_log)rgr�r��resultr�r�r�s       rJr��IMAP4._get_tagged_response|s�����)�)�#�.�F��!��(�(��-��
�����-�-�1�1�#�t�<���?��:�%�
�O�O��
��"�"�$�/��0�:�:�
���z�z�Q�����(���	
�s�A1�1B(�"B#�#B(c�*�UR5nU(dURS5eURS5(dURSU-5eUSSnURS:�aUR	SU-5 U$URSU-5 U$)Nzsocket error: EOFr
z#socket error: unterminated line: %r���r�z< %r)r�rO�endswithrWr�r�r�s  rJr��IMAP4._get_line�s����}�}�����*�*�0�1�1��}�}�W�%�%��*�*�B�T�I�J�J��C�R�y����z�z�Q���
�
�6�D�=�)����	�	�&�4�-�(��rIc��URU5UlURbKURS:�a;URSUR<SURR5<35 URSL$)Nr�z		matched r�)�matchr�rWr�rA�groups)rg�cre�ss   rJr��IMAP4._match�sY��
�)�)�A�,�����w�w�"�t�z�z�Q���
�
�3�;�;������@P�Q�R��w�w�d�"�"rIc��UR[[UR5UR5-nURS-UlSUR
U'U$)Nr�)r�r�rTr^rprZ)rgr�s  rJr��IMAP4._new_tag�sH���k�k�E�#�d�k�k�"2�D�N�N�C�C���k�k�A�o���$(����S�!��
rIc�Z�URSS5nURSS5nSU-S-$)N�\z\\�"z\")r�)rgr�s  rJrF�IMAP4._quote�s0���k�k�$��'���k�k�#�u�%���S�y�3��rIc�F�URXR"U/UQ765$r�)r�r�r�s   rJr��IMAP4._simple_command�s!���%�%�d�M�M�$�,F��,F�G�GrIc���US:XaX4$X0R;aUS/4$URRU5nURS:�aURSU<SU<35 X4$)Nr�r�r�z] => )r[r�rWr�)rgr�r�r�r�s     rJr��IMAP4._untagged_response�se���$�;��8�O��.�.�.����;���&�&�*�*�4�0����z�z�Q���
�
�T�4�H�I��y�rIc��Uc[R"5n[R"S[R"U55n[RRSX2S-S-U4-5 [RR
5 g)Nz%M:%Sz
  %s.%02d %s
�d)�time�strftime�	localtimer��stderr�write�flush)rgr��secs�tms    rJr��IMAP4._mesg�s`���|��y�y�{�����w����t�(<�=�B��J�J���-��3�h��^�Q�0G�G�H��J�J���rIc��U(dgSUR55nURSSRU5-5 g)Nc3�6# �UHupUSU<3v� M g7f)�: NrB)�.0�key�values   rJ�	<genexpr>�!IMAP4._dump_ur.<locals>.<genexpr>�s%���B�&@�
���u�B�u�i�(�&@�s�zuntagged responses dump:z
		)�itemsr�r�)rg�untagged_resp_dictrs   rJrg�IMAP4._dump_ur�s=��%��B�&8�&>�&>�&@�B�E��J�J�1�H�M�M�%�4H�H�IrIc���U[R"54URUR'U=RS-
slURUR:�aSUlgg)Nr�r)rr�r�r�r�s  rJr��
IMAP4._log�sS��04�d�i�i�k�/B�D�M�M�$�+�+�,�����"��� � �D�$5�$5�5�$%��!�6rIc� �URS[UR5-5 URURp!U(aBUR"URU6 US-
nXR:�aSnUS-nU(aMAgg! N*=f)Nzlast %d IMAP4 interactions:r�r)r�r�r�r�r�)rg�i�ns   rJr��IMAP4.print_log�s����J�J�4�s�4�=�=�7I�I�J��$�$�d�&7�&7�q����J�J��
�
�a� 0�1��Q����)�)�)��A��Q����!����s�B	�	B
)rur�rwr�r�r�rpr_r�r\rWr�rhr]rYr�rHrir�rXrZr^r�r�r[rGror�)z""�*)r�Fr�)F)WrDrErFrG�__doc__rcrKrOrS�
IMAP4_PORTrkr`r|rbr�r�r�r�rar�r�r�rdr�r�r�r�r�rrr�rrrrrr"r&r+r1r6r<rBrIrMrLr�r^rardr�rnrqrvr|r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rFr�r�r�rgr�r�rHrBrIrJrr�s���-�^!�	� �����5���Z���2F�<�'7�TC���1���T�	-�$�
� �
� �7�"C�E�4�:7�-��F�7�7�?�
�7�7�8�?�:�'�	7��B�N�
�	7�=�7�,�	:�
7�F�7�$B�@B�?�:�7�7�.	7�:�:�7�7�2<�
� 1�,�H�J�Z�$/�M�`�B�&	#���H�
	��	�	J�	&�	rIrc�F�\rSrSrSrS\4SSS.SjjrSrS\S4SjrS	r	g)
�	IMAP4_SSLia?IMAP4 client class over SSL connection

Instantiate with: IMAP4_SSL([host[, port[, ssl_context[, timeout=None]]]])

        host - host's name (default: localhost);
        port - port number (default: standard IMAP4 SSL port);
        ssl_context - a SSLContext object that contains your certificate chain
                      and private key (default: None)
        timeout - socket timeout (default: None) If timeout is not given or is None,
                  the global default socket timeout is used

for more documentation see the docstring of the parent class IMAP4.
rTN)r�rjc�l�Uc[R"5nX0l[R	XX$5 gr�)r�r�r�rrk)rgrhrir�rjs     rJrk�IMAP4_SSL.__init__s*���"�!�8�8�:��*���N�N�4�t�5rIc�t�[RX5nURRUURS9$)Nr�)rr�r�r�rh)rgrjr�s   rJr��IMAP4_SSL._create_sockets;���'�'��6�D��#�#�/�/��@D�	�	�0�K�
KrIc�0�[RXX#5 g)z�Setup connection to remote server on "host:port".
    (default: localhost:standard IMAP4 SSL port).
This connection will be used by the routines:
    read, readline, send, shutdown.
N)rrarfs    rJra�IMAP4_SSL.open!s��
�J�J�t�4�1rI)r�)
rDrErFrGr'�IMAP4_SSL_PORTrkr�rarHrBrIrJr*r*s1��	�!#��	6�$(�$�	6�	K�
�^�T�	2rIr*c�@�\rSrSrSrSrSSjrSrSrSr	S	r
S
rg)ri,z�IMAP4 client class over a stream

Instantiate with: IMAP4_stream(command)

        "command" - a string that can be passed to subprocess.Popen()

for more documentation see the docstring of the parent class IMAP4.
c�:�Xl[RU5 gr�)r�rrk)rgr�s  rJrk�IMAP4_stream.__init__8s����
���t�rINc	�8�SUlSUlSUlSUl[R
"UR[[R[RSSS9Ul	URRUlURRUl
g)zmSetup a stream connection.
This connection will be used by the routines:
    read, readline, send, shutdown.
NT)�bufsize�stdin�stdout�shell�	close_fds)rhrir�r��
subprocess�Popenr�r�PIPEr�r7�	writefiler8�readfilerfs    rJra�IMAP4_stream.open=sq��
��	���	���	���	�!�'�'����'��/�/�*�/�/��$�(������+�+������+�+��
rIc�8�URRU5$r�)r?r�r�s  rJr��IMAP4_stream.readMs���}�}�!�!�$�'�'rIc�6�URR5$)r�)r?r�rxs rJr��IMAP4_stream.readlineRs���}�}�%�%�'�'rIc�n�URRU5 URR5 g)r�N)r>rrr�s  rJr��IMAP4_stream.sendWs$�������T�"������rIc��URR5 URR5 URR	5 g)r�N)r?r�r>r��waitrxs rJrd�IMAP4_stream.shutdown]s2���
�
���������������rI)r�r�rhrir�r?r�r>)NNN)rDrErFrGr'rkrar�r�r�rdrHrBrIrJrr,s%����
,� (�
(�
�rIrc�0�\rSrSrSrSrSrSrSrSr	g)	r�iezSPrivate class to provide en/decoding
for base64-based authentication conversation.
c��Xlgr��r�)rg�mechinsts  rJrk�_Authenticator.__init__ks���	rIc�l�URURU55nUcgURU5$)N�*)r�r�rU)rgr��rets   rJr��_Authenticator.processns0���i�i����D�)�*���;���{�{�3��rIc��Sn[U[5(aURS5nU(aK[U5S:�aUSSnUSSnOUnSn[R
"U5nU(aX$SS-nU(aMKU$)NrIr{�0r�)rSrTrUr��binascii�
b2a_base64)rg�inp�oup�t�es     rJrU�_Authenticator.encodets������c�3����*�*�W�%�C���3�x�"�}����H���"�#�h�������#�#�A�&�A���c�r�F�l���c��
rIc�>�U(dg[R"U5$)NrI)rU�
a2b_base64)rgrWs  rJr��_Authenticator.decode�s�����"�"�3�'�'rIrLN)
rDrErFrGr'rkr�rUr�rHrBrIrJr�r�es���� ��0(rIr�z0 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov DecrPr�c	��[RU5nU(dg[URS5nURS5n[	URS55n[	URS55n[	URS55n[	URS55n[	URS55n[	URS	55n	[	URS
55n
U	S-U
-S-nUS:XaU*nXRXFXxS
S
S
4	n[
R"U5U-
n
[R"U
5$)z�Parse an IMAP4 INTERNALDATE string.

Return corresponding local time.  The return value is a
time.struct_time tuple or None if the string has wrong format.
N�mon�zonen�day�year�hour�min�sec�zoneh�zonem�<�-r�)	�InternalDater��Mon2numr�r��calendar�timegmrr)r�r�r`rarbrcrdrerfrgrh�zone�tt�utcs              rJr	r	�s��
�	�	�D�	!�B�
��
�"�(�(�5�/�
"�C��H�H�W��E�

�b�h�h�u�o�
�C��r�x�x��� �D��r�x�x��� �D�

�b�h�h�u�o�
�C�

�b�h�h�u�o�
�C������!�"�E������!�"�E�
�"�H�u��b� �D���}��u��
�S��"�b�"�	5�B�
�/�/�"�
��
$�C��>�>�#��rIc��SnSn[[U55nU(a![US5upX#US-U-nU(aM!U$)z-Convert integer to A-P string representation.rIsABCDEFGHIJKLMNOP�r�)r��abs�divmod)�numr��AP�mods    rJr
r
�sK���C�'�r�

�c�#�h�-�C�

��#�r�?����S��U�m�c�!���#��JrIc��[RU5nU(dg[URS5R	55$)z-Convert IMAP4 flags response to python tuple.rBr�)�Flagsr�r�r�r�)r�r�s  rJrr�s5��
���T�	�B�
������'�"�(�(�*�+�+rIc�x�[U[[45(a4[R"U[
R5R5nO�[U[5(a.URn[!US9n[USSS[U506nO`[U[5(aUR"c[%S5eUnO0[U[&5(aUSUS4S	:XaU$[%S
5eSR)[*UR,5nUR/U5$![a� [R(a_USnUS:Xa-[R"[R"U55Sn[R
[R4U*nGN2[R
*nGNFf=f)a�Convert date_time to IMAP4 INTERNALDATE representation.

Return string in form: '"DD-Mmm-YYYY HH:MM:SS +HHMM"'.  The
date_time argument can be a number (int or float) representing
seconds since epoch (as returned by time.time()), a 9-tuple
representing local time, an instance of time.struct_time (as
returned by time.localtime()), an aware datetime instance or a
double-quoted string.  In the last case, it is assumed to already
be in the correct format.
�r�)�secondsN��tzinfozdate_time must be awarer)rrzdate_time not of a known typez"%d-{}-%Y %H:%M:%S %z")rSr��floatr�
fromtimestamprrq�
astimezoner��	tm_gmtoffr�r�daylightr�mktime�altzonerrr�rT�format�Months�monthr
)r��dt�gmtoff�dst�delta�fmts      rJrr�sh���)�c�5�\�*�*�
�
#�
#�I�$,�L�L�2�2<�*�,�	�	�I�u�	%�	%�		(��(�(�F��&�)��
�y��!�}�
=�X�e�_�
=��	�I�x�	(�	(����#��6�7�7�
��	�I�s�	#�	#��1��i��m�(D�	�(Q����8�9�9�
"�
)�
)�&����*:�
;�C�
�;�;�s����'�	(��}�}���l���"�9��.�.����Y�)?�@��C�C��=�=�$�,�,�7��<�<���-�-���	(�s�&D&�&A;F9�$F9�8F9�__main__zd:s:)rBrBz-dz-s)rTzIMAP password for z on �	localhostrzJFrom: %(user)s@localhost%(lf)sSubject: IMAP4 test%(lf)s%(lf)sdata...%(lf)s�
)rG�lfrI)r)�
/tmp/xxx 1)rv)r�z/tmp/yyy)r��
/tmp/yyz 2r�r�)rB)z/tmpzyy*)r�r�)r|)N�SUBJECT�test)r&)�1z(FLAGS INTERNALDATE RFC822))r�)r��FLAGSz
(\Deleted))rdrB)r"rB)r�rB)r�rB)r�rB)r�)�UIDVALIDITY)r�)r/�ALL)r�)r�)r�rBc��[RU<SU<35 [[U5"U6up#[RU<SU<SU<35 US:XaUSeU$)NrPr�r�r)�Mr�r�)�cmdr�r�r�s    rJ�runr�0sL��	���3��%�&��1�c�?�D�)���	����c�3�/�0��$�;�c�!�f���
rIrzPROTOCOL_VERSION = %szCAPABILITIES = rB)z/tmp/zyy%z.*"([^"]+)"$r�rr�z%sz:(FLAGS INTERNALDATE RFC822.SIZE RFC822.HEADER RFC822.TEXT)z
All tests OK.z
Tests failed.z8
If you would like to see debugging output,
try: %s -d5
)Vr'r�rUr�r�rqr�r;r�rrmrrr�iorr�r��ImportError�__all__r�rVr(r1r�r�r�rrr�rzrkrtrur�r�r�rwrsrvrr*r�rr�r�r��	enumeraterUrlr	r
rrrD�getopt�getpass�argv�optlistr�rKr��stream_command�optr�rh�getuser�USER�PASSWD�	test_mesg�	test_seq1�	test_seq2r�r�rXr�r�r�r��mlr�r�r��pathr�r��print)r$r�s00rJ�<module>r�sN��
�,��K�K�K�K�K�2�2�"����H�8��
��	��
�
���(����
,
��,�,
�	��,
�	�A�	,
�
	�
�,
�	�
�
,
�	�
�,
�	�,�,
�	�,�,
�	�,�,
�	�
�,
�	�,�,
�	�
�,
�	�
�,
�	�,�,
� 	�,�!,
�"	�,�#,
�$	�,�%,
�&	�,�',
�(	�,�),
�*	��+,
�,	�A�-,
�.	�,�/,
�0	�
�1,
�2	�,�3,
�4	�A�5,
�6	�
�7,
�8	�	�9,
�:	�,�;,
�<	�
�=,
�>	�,�?,
�@	�,�A,
�B	�,�C,
�D	�,�E,
�F	�
�G,
�H%�,�%�,�%�%�,�%�W,
��`�z�z�0�1��
�
�
�4�5���z�z����
�*�*�+�R�X�X�
6��
�*�*�^�
$���
�
�D�E�
��J�J�G�H���*�*�;�R�X�X�G��"��J��x�x�v#�#2�E�#2�J�N�N�;��5�5�5�r*(�*(�X
<�	A�	A�#�	F��&/��q�r�
�&;�
<�&;�d�a�1�8�8�:�a��c�>�&;�
<���F	�,�%�R�z�����
�
�c�h�h�q�r�l�F�;�
����N����C��$�;���H�E�
�D�[� �N��4�� 1��������7�D��?�?��D�
�_�_�t�T�EX�[�EX�Y�
Z�F�\�gk�rv�_w�w�I��t�V�n���*��
��d�D�)�4�5���)�3�,������I�$�!���
��d�D�)�,�-����I��)���^�,�A��d��A��7�7�f��!�!�"�
�I�	���'�!�*<�*<�<�=�	���q�~�~�7�8�!�H�C����T�N�"��f�.�/�B����/�2�.�B��"�(�(�1�+�4�����B��$���4�'�"�	0�"�H�C���c�4�.�C��D�z�7�7���b�'�-�-�/�C��������B���P�R�
S�"�	�� �{��q.���H���d+=��`�<�<���
������j	�
�� ����
�h�h�q�k��
�
	�s<�P� P�#P#�D-Q�P�P�#Q�3P>�>Q�*Q0
© 2025 GrazzMean-Shell