����C %# , #&')*)-0-(0%()(��C (((((((((((((((((((((((((((((((((((((((((((((((((((����"�������@�@�hC��}!���Ѱ��<"� 9iׂIIIHk�+?�c?��*Y�����!�du)b�T�9вU�$8G��I.�澬��D���Sq� q�}.<��Z�l�V!X� *x�-�\����t3i�Ũ�sNv71�ƛ\��z|t�L���$�����*f��kʮ��7�H;���~F%�'3�@�H�q�` 9mOL����/x@ @��G
d�8F�ه��Ka�Kdr�Fh.�]y4 JЛ��]�K�B�E$��$ $ �PR�����G�]��u�i$�$���'! "#031���C/Td=S�Q?���62Ccj{ ����̏d�چ/c�V�`��Wz͈�{Y`�d�h�L �]OB���l���o���mr���n��s-ڗEZ��N�_��1%b���H�ϣ������V�7):�ӷ)�}�~�(�;�!�b1�5K��[E�vϻ>��q.%� ���O���(�c�#x�$�'+��`٥v��v(�����M�"�v��B��.�a ���T�~�ϕ�hy(6nݱl��1yNɓx�������AR�8�rqv1.cS�+��_���&@�� �u�M�5Ĉ�Xm���eL�X�q��y#�9]�c�}ɄL��d�eJ몓���I1T�d��CaM�$��T�,�X �bʭ�!�%F5��X1x#���!�q��\��F��2��&Rq���C�ol~�̱�.0ϦL�d�`.������ ���m{�Y~k{C��}bv�;U��c<�r�~ɜs�1�j��]W�l��*նCr��Q�N9�-������d��E؛��nF��eړ�8(q��5UgRȱGTA��*������̆��V�珰����ezN��h�U]�T�FG�^���<��ay�,!���5.� �u�bΚ�V�J%��m�Dxn'�����6�@BPa�`��Hts� �ɮ���Ŏ�Zɬ��%B�X��d5Z���hC}�䅸�p+ k=��ʒ(�aՏFG&�%@/�{+�Yu+�ȣGѩ"O%�|vȲxF>�N(��ou�h6 &Y5��8�7�E$-��']n,@TD\��+���Ry�U��U^�Q,f>��1�����q��f��U��� ����F���ڥ��>I�����fNUw�u��#OMMQ6� N�*��_�� k� ����rS��`���1�:��!�F'<+� � b?O��2 !Q12A��� "3a������#$��?�,�7�!`yǮ(�1�6w��a���� �F�#��?*"s���v>��Ⱥ����f�v��͑���s����������]Gn��S ���ȥpG ы�E�g�)Z���x�rY�q�]�@f�_܃�pչEڎّC ����Ŝ*/ �h�O�Sv�و\��5��U��y��|o�Hm2C�S�BW����)��5��{T��W���=o*RA��<����L0g4{��쁢�ep�rw�8��7��U���t<Ԍѻ7�fGf�k}���Ê�㛆Gռz�Q@��{C��'G��8�!�S$�j��x���|���צV<��,����u�k�uu�rM�f�_dϣi ߫�ԟn�!K����mxu�=�槻�'j�X�����������%!A "1QR#Br��?�R:��R�n�b[�II?#��6<:�$gN����lGNlrr��dעMMn`ɿy�,�%B�e�W��dVS��r���� %�tT��(�ɷ��S�]�O]#�_LEMHN�M���kv���~X���O6�U�V_�����b���J�t�774����D!1AQa"2q�#3BRb����0���� 4CSr����cst�����?��^q���7�dG�U�"p��moz��'��n_x���唹e������<6��O�t���R>k��s=�Cr���e�?�i��� ����/��ں$be���o`ޮ�GHy�;fNAl�8��.�\�S������"���a�úF�YvNk�-*`v�k�ʈ2f�EE��Wa�,� �fF^#�;��[9��^~������Y$:0#W3������Z*���I�Z�ڹ�k�n--9=��G��;7F)m{T�Ɇ��=�����Ȭ5�5�B�aڞ5M����#m�5Ʀ��m�8��+Hh���$�}�:&�e�Q�[;i]С�:�:��o����$<~��5RB�?�s3�5�r��O��ֿ�w�P/��̅���(�Z6�R>)��N��4�!ʊ�wz�-�r�w+�yk���q�1�bKhƸ�4N�Ӑ�X����Q��_��})�+e1�5��n��q?��[�^�9�<�z3Fsi�8�'�)9p)�{��RP�Z+�*��p(aY��V����6l�g�9��;���d�u���Nt@�3�sTwzaŇ�GT�b�H��(#��*zc�������9K�b1�����t����Ê��
�Z?g�iD���H�R���B���^M����v���O���L�D,'d�q�C�P�����$Δ��U�֟֊=�s��F�$��J�ދZ?�N��������A�N�WP��,�� �¦�&;�x��dup�����i���Ipd���;�Dž!��ֿѮAb%�u��}j��-p��>I�[�N�bi����G�'�;4w�m]H�]����#LӘNN��R��������s�.]��en��-�8e��Ps����Q��;���ț�E�ݫ���7��g�_L��W��EZ:/��I���a�g�n�ܤ��iٹ���ŷ�T���H~i�a�����֎�~KV������ A-2m]�F"�m�9-Zbǰ�״ @����~�4�N�[�Uxč�tl>������u#r�gѐ�3���;M9�<�J�����1�vfL8����1�P�HgP�Xv��������{����O�}�n��KQ؋����7<�l�fey<�}�>�bX���4<`Y7���si��V)�s�:�{�rO�h�z �@4VW�B���&�������ɡob܋�F��4>y�s�fXWS�N�O$�,.u:�ԫ��g�yao4��$h��D#��ٸf^kh�7�#1Z�֥&���*�v-��;bޭ����Q�����h�ow�y]�ه.+�7�M�ⴻ �JY��g�f�i3q��KC��3�¹�?5�Z.N��^Z w���KF͂���7��ރ۞��wj��T�J.�q��\Sv1U����R��욽&�N����pЖ`�`у��m`v�n#z��4��>e��V�`'���h�����'�j�AҔ�-�4:H���n]9�h<��n����U�6m��2c�E�1/�Y�%���I��~ʏ�|VBƟ@����;�������%�M9M���}��1�D��d����%g���O��]��у&�r��f�7�uܲ���(!1AQaq�������0� ���?!��*��@)�Je�G��j��{�['��v+���������)���(�/����д%젍Z��kk�Lu�Rm���j.c���@Z� V�J��d��j���h6���2AO�� a;oBu���H�=���nK�W8�B�ɰ�u?��бأm,�sr����|����8˨i��qI2tZ�ۄJP��XE��������zޔj~]UMu����zv!����N�&�1�Y��zJ�ՠ��\p��o'ሸ�C؊Y��TD"HM5�Ъ��i߯a���F����A)�����ڮ����z�E���@�hg�֝8�1jk��\�M�3�8ܢ�� ������s�7����N}�ޭ������GN�Bc���L pk�;�J�δ3�e�iU�gAYW]\�>�GyگQ=��f�KA;T�a`eM+Q �� �Ln���̌]GM�����<Ħ�j���H��N�M�x�}aX{̣S� ��ԅ��n�MA�S�r�(����(�L��zo9���.�;
�ӳf������`Ӕ٢3�� IW��\9~_���saa�\ԊW�ܭX:���ӆ�38�ty*����N�qP����BI�Y��jE��>DP�!�R%-��4��'�皺;��~J�!�7m���X��h�P!曭���$�\�AYj�.lC��4��+�jD�dgC0-*���|��`ZD�+л�C"��)��s��8Kq�pq���Ms��4� ��7\U`�.��[Ey8��AH!/��,���(:M -�T䓥�~O�4-���Ԓn��}HDN7���K���$�_Ԕ䚞`�R�hB�_aX?4V��ŗ�@ه�u�a�;�{PcT+�������7YBo�?��r-ͩ{�ĎA�� ����˼n��M286��G���1���V�˜Jв"l��V5���5�C]h���̊�A���%� �'p���Ԃ���Ր��9=�d�=�e�{�'<3�_ �:^�~��4�(�n�-C�s��5m![�jmIqU�~�Tw8��`���p�H8�u�Д l m�aP�0�������9y����CM��F1G糞�.�U~�������FC�{�!e(Y�:���P����7~;�L�N^{�1r�\���ԬG(���0d�ÏO�qK�Z�⑼�T�{ 2��s��Kd�Տ?mMQ��=���6�7�i�����H+����9��d��=��;�QؤH8n�Lb�D��yS%�(�{b���Cu���p�t#C���$A"�H{���jqᶯ�:�n=E����hH�`�!�m��MA������?�v6���+MԿ⟚qK�i�D�*Q5��CZ���2�|]�:Xd+�t�:o@��M��� :�32��b����[\5=�ֵ7])�|t��Ϻ����w�B�ń�e���!`�:��I,��9:����j@/a 8����+<�u�(T^ۺ~��2oE�B�%b)��z��ݳځ�)��i�j��&��Fi`qr��w���7�@��P�� �3Z&<�m�S�C����7t�T����ƴ�q~J�e�r6�Z]�rL���ه�E17'�x���+[�ܜTc6�/�����W�`�qpMJ���N5^����x�}{l�Fm������1�oZ\�����/d�/6� �uӸ�0elXuX;M��$M�}mB��������Z%e���3f�js����O�J~2�z�86�*PB��v�Ν��e-��.�/��L�O����2����9���4}|��T5M���hÐ7�F*��l+y0����:|��=k[�d�;|�ԉe�=w�<��õ�<��'!1AQaq����� ������?��5����)�(���+>v����6&{���Ǹ@����M�����v��iA 6T'�w��h�s �E}�x��G&'g�� J~1q�f�f���&��q˘���-���vYm
�/i1 �I��6��u,)�#�,����l}*&`�$�ͬe�%�w3�x�Ѥ�Xc�D��执g�峕�5B/�|$��=���%8 a��2.l� c�@G� �\�/x[өq�]�v5?�����N|�!���\��,>��{�"r�/��?��&!1QAa�� ��ᑱ����?ĊD�肭�� nv@�yޝ (�����I ����U - ���b�m�E>,��1v!�d�&�� ���&�檔�5D�&0P��Ԕ�͒@Z��:E"� Q��`>PH:~�O�����P�3W��@hM��k�U��\�O��R�������5ʄ�,��f�|��r���}јxo)�"+h�QK���/��0�`�5�{M~�� ���'!1AQaq���0 �������?�?�k��#^�~�G��#V,������#Z�1'ܤ����������~p�O%O�O�\�q�`�~��}��E�Ű5 �輸�du����x\�$���s[�{T2t`B��gq�4Z]b� 㛪�3,(@����bAp�r)9:@|b�!r�g:N�^�Ʌ��� �x_�\��pm7I��0?>^k��������w���|.K�[sF@�]Gn*L �yO� le�P�.p��֍�j�S�=�ʨ�ןQF�"��5zʼn���k�*8�u" ����Fg��� �cSy�V������Ƈ��N��ؐ(�����48hV�A�ӎ^��^ ���jyB� ��p"�����y]�ļlU�(�7�U`3�pCGF'&yg������o��z������X��ν:�P"@�G@x[��o&MJ�$F.����hi w;}�/^͇q���n�mN�/�TQ���އ��O1\,}��bQ #¯^S!)��X���#GPȏ�t�� c^\��' }iIZ���a�)��������z��4͊�Ξy��48,��f���#�����KP!Jx�|w�ʆ�������������#��Z�������< �~K��r�p&qH/;�R���沽�+�E�R���~0v���V#ʀ�T��S(-ڝ��B�y�b�C�D������b��������8��~�= �Y�ͧ]��@n����M�k2�%�;�%,�r6�LR腻?^��;KŇ=�ք ���=`�ɥ��/����z�&�I{���#J��M���C��}�H9^UJ�,P ��pS����G�d69Ϭu���%"��ˢP��K�"k)��=��9� ����㇌,��Oli��Xzh� " � ������R��^�s����N�k��Q>�63(���� ��PQ�Py�����3����$f+W՛=4�ǁ`*��^��Eb�K�t�6��^��!�籷��ȭ��K{/;�L���p�x�����;a���Oلz�[�.NP4�]Gc�T�v����~sg'LED��]j��'�G�]�6rY����UPw�*O�İՋi�'8�۴�#g�Xx+=�eU6�R��c�"�u2��~�?n�y�;�u��3�'��6�f������b��߬M�$*��k&?6���*^1n����ێz)<��Gz� �����7����Y� ��ۃ)$A��2�L6� ե�H�<�r��#ʽ2��O��R���z�A��XW��@���������<�G� Ϥ�^�˓i�M�W���6 ��0��m){c�;ݧ�>R�a����}1�ٯ%�EY2�Q��Ep���$ ��E��qS��t#+x� *�h�UI��XM?�'//��a'�G�����q@���<��z��؟����cd��z�ˬT_u�Ѯ����&�z�k ��n ]�a%�py»�`Qd�xc������n�� ��*��oTd�;'j�<�!j���'�(~�ʹW�M� P�mȘ��@֨V+��R�`�$��`�+@��_[�kG����P���Zh9�R����&5b�v���Z���#p�&�Ա+��8�etZ7G���;��@"�e0���v7����?��z�?_���_�q1�T�"�p�ˎ/U 6_�B�>��0( ��}G#������Ȣ�p�� �9��;/& `�B&$�y��t(�*z�x���Ӕ������S�?Kȏ3���{p� b � ۍ-�z܈֦��6?<���ǬP�N�G �更� �6�/h�����0Z���������i�ua��e�*M'A� �x��v�q.>�F� oN{��Q���{gD��L��u��=|���O xN���d���q�8(��E�Uu��,��O� t�DJ ����;��G����e���C��VYZ�� ���T4{����(�Ӳ'c�t�f��w�c�jr�e�m �#7,�6��B�E4Q�P�.P�(&��^{9H-�m�o ��q�g1���=��>p�)/"p0!4�mS6ú�FN���h��D �)��XdT �FؤZ⸚�k���H�c8v� <���u�P�Հ���:��_�EN��|�ӛ��u?-�/�o�Lhk�ܸ�S�;�Rī�����T"�N����M��px7<�� j�$��`�Y)Pjh 5` K�Qf�4�C�bX"�D���;HD�Z�9R b�F)�UA����v�#��HD�!{������>I� �`�ԁ i�4�)t*�ç�Le�_���>ru�GEQg��ǔct��ō0��l6v���d�� ��GG8���v^�|�#JyZPSO�� Y�CuAߐ�"�x���OfHF@�K�V�!少Eҕ]h� ��[���)��.q����*0I<8��^�6�}p��^tho���ig�i����DK���p,��2�3�I��5����쓄OY�6s7Qs�Ow^�w�J/�A➰������0������g(Մ��y��Kԇ����QS��?H���w�X�=��ҞX�~���Q=�'���p?7�@g�~�G�}�r��g�T?���
One Hat Cyber Team
star
One Hat Cyber Team
star
Your IP :
18.191.197.217
Server IP :
50.6.170.23
Server :
Linux 50-6-170-23.bluehost.com 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Server Software :
Apache
PHP Version :
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
opt
/
alt
/
python311
/
lib64
/
python3.11
/
__pycache__
/
View File Name :
imaplib.cpython-311.pyc
� ���S�*��������������������������l����d�Z�dZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddlmZmZm Z �ddlmZ� �ddlZdZn #�e$�r�dZY�nw�xY�wg�d�Zd ZdZd ZdZdZd Zi�dd�dd�dd�dd�dd�dd�dd�dd�dd�dd�dd�dd�dd�d d�d!d�d"d�d#d�i�d$d�d%d�d&d�d'd�d(d�d)d�d*d�d+d�d,d�d-d�d.d�d/d�d0d�d1d�d2d�d3d�d4d��ddddddddd5��Z�ej��������d6������������Z�ej��������d7������������Z�ej��������d8������������Z�ej��������d9ej��������������������Z �ej��������d:������������Z!�ej��������d;������������Z"�ej��������d<������������Z#�ej��������d=ej��������������������Z$d9Z%d=Z&�G�d>��d?������������Z'er#�G�d@��dAe'������������Z(e�)��������������������dA��������������G�dB��dCe'������������Z*�G�dD��dE������������Z+dF�,��������������������dG������������Z-dH���e.e-dId����������������������D���������������Z/dJ��Z0dK��Z1dL��Z2dM��Z3e4dNk�����r?ddl5Z5ddl6Z6 ��e5j5��������ej7��������dId����������dO������������\��Z8Z9n#�e5j:��������$�rZ;dP\��Z8Z9Y�dZ;[;ndZ;[;ww�xY�wdZ<e8D�]$\��Z=Z;e=dQk����r�e>e;������������Z�e=dRk����re;Z<e9se<fZ9�%e9sdSZ9e9d���������Z?�e6j@����������������������ZA�e6j6��������dTeA�dUe?pdV�dW�������������ZBdXeAdYdZ�z��ZCd[eAeBffd\d]d^d_d`ddeCffdadbdcdddedfdgdhdifZDdjdkdldmd_dddeCffdhdnfZEdo��ZF �e<r�e*e<������������ZGn�e'e?������������ZGeGjH��������dpk����r eDdId����������ZDeG�I��������������������dqeGjJ��������z���������������eG�I��������������������dreGjK�����������������������eDD�]\��ZLZ9�eFeLe9���������������eFdsdt������������D�]RZM�ejN��������dueM������������ZOeOreO�P��������������������dI������������ZQneM�,����������������������������������dv���������ZQ�eFdweQf��������������SeED�]O\��ZLZ9�eFeLe9������������ZReLe9fdlk����r�eRdv����������,����������������������������������ZSeSs�7�eFdxddyeSdv���������z��dzf��������������P�eTd{�������������dS�#���eTd|�������������es�eTd}ej7��������d���������z�����������������xY�wdS�)~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���)� IMAP4REV1r���i@B��APPEND)�AUTH�SELECTED�AUTHENTICATE)�NONAUTH� CAPABILITY)r���r���r����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��������������������L����e�Zd�ZdZ�G�d��de������������Z�G�d��de������������Z�G�d��de������������Zded fd �Z d��Z d��Zd ��Zd��Z d��Zd��Zd��Zded fd�Zd��Zd��Zd��Zd��Zd��Zd��Zd��Zd��Zd��Zd��Zd��Zd��Zd��Zd ��Zd!��Z d"��Z!d#��Z"d$��Z#d%��Z$d&��Z%d'��Z&d(��Z'd)��Z(d[d,�Z)d-��Z*d.��Z+d/��Z,d0��Z-d[d1�Z.d2��Z/d3��Z0d4��Z1d5��Z2d6��Z3d7��Z4d8��Z5d\d;�Z6d<��Z7d=��Z8d>��Z9d?��Z:d]d@�Z;dA��Z<dB��Z=dC��Z>dD��Z?dE��Z@dF��ZAdG��ZBdH��ZCdI��ZDdJ��ZEdK��ZFdL��ZGdM��ZHdN��ZId^dO�ZJdP��ZKdQ��ZLdR��ZMdS��ZNdT��ZOdU��ZP �d]dW�ZQdX��ZRdY��ZSdZ��ZTd S�)_r���a���IMAP4 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�������������������������e�Zd�ZdS�)�IMAP4.errorN��__name__� __module__�__qualname__��������./opt/alt/python311/lib64/python3.11/imaplib.py�errorr?�������������������������rE���rG���c�������������������������e�Zd�ZdS�)�IMAP4.abortNr@���rD���rE���rF����abortrJ�������rH���rE���rK���c�������������������������e�Zd�ZdS�)�IMAP4.readonlyNr@���rD���rE���rF����readonlyrM�������rH���rE���rN�����Nc������������������x����t�����������|�_��������d|�_��������d�|�_��������i�|�_��������i�|�_��������d|�_��������d|�_��������d|�_��������d|�_ ��������|�� �����������������������������������|����������������������|||������������� �|�������������������������������������d�S�#�t����������$�r(� �|�������������������������������������n#�t����������$�r�Y�nw�xY�w��w�xY�w)Nr���rO���Fr���)�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��� rF����__init__zIMAP4.__init__����s��������� ��� ����!���"$���%'��"� ������ %���������� � � �$��g�&�&�&� ��M�M�O�O�O�O�O���� �� �� � �� � �������� �� �� ��� ����� ���s0����1B�� B9�B'�&B9�' B4�1B9�3B4�4B9c������������������������d|�_���������d|�_��������t����������j��������t����������t����������j��������������������|�_��������t����������j��������t����������t����������j��������������������|�_��������d�S�)NF�ascii) �utf8_enabled� _encoding�re�compile�_Literal�ASCII�Literal�_Untagged_status�Untagged_status�rb���s��� rF���r[���zIMAP4._mode_ascii����sC������!��� ����z�(�B�H�5�5���!�z�*:�B�H�E�E����rE���c�����������������������d|�_���������d|�_��������t����������j��������t����������������������|�_��������t����������j��������t����������������������|�_��������d�S�)NT�utf-8)ri���rj���rk���rl���rm���ro���rp���rq���rr���s��� rF���� _mode_utf8zIMAP4._mode_utf8����s;������ ��� ����z�(�+�+���!�z�*:�;�;����rE���c�����������������������t����������t����������j��������dd������������������������|�_��������t ����������j��������d|�j��������z���dz���t����������j��������������������|�_�������� �d|�_��������d|�_ ��������i�|�_ ��������|�j��������dk����r:|����������������������d t����������z���������������|����������������������d |�j��������z���������������|������������������������������������|�_��������d|�j��������v�rd|�_��������n+d |�j��������v�rd|�_��������n|����������������������|�j���������������������|������������������������������������� �|�j��������dk����r|����������������������d|�j�����������������������t*����������D�]}||�j��������vr�||�_���������d�S�|����������������������d�������������)Ni���i����s���(?P<tag>s"���\d+) (?P<type>[A-Z]+) (?P<data>.*)T� ���r�������zimaplib version %sznew IMAP4 connection, tag=%s�PREAUTHr����OKr�������zCAPABILITIES: zserver not IMAP4 compliant)r ����random�randint�tagprerk���rl���rn����tagre�_cmd_log_len�_cmd_log_idx�_cmd_logrR����_mesg�__version__� _get_response�welcomerV���rS���rG����_get_capabilities�capabilities�AllowedVersions�PROTOCOL_VERSION)rb����versions��� rF���r]���zIMAP4._connect����s�������V�^�D�%�8�8�9�9����Z���+�!&�@�!A�BD�(�L��L�� � I� "�D�� !�D���D�M��z�Q���� � �/�+�=�>�>�>�� � �9�D�K�G�H�H�H��)�)�+�+�����/�/�/��D�J�J� �T�,� ,� ,�"�D�J�J��*�*�T�\�*�*�*���� � � � F��z�Q���� � � ��1B�1B�D�E�E�E�&�� �� �G��d�/�/�/��$+�D�!��F�F��j�j�5�6�6�6rE���c������������������|�����|t�����������v�r"t����������|�|�����������������������������������������������S�t����������d|z���������������)NzUnknown IMAP4 command: '%s')�Commands�getattr�lower�AttributeError)rb����attrs��� rF����__getattr__zIMAP4.__getattr__ ��s9�������8����4������.�.�.��:�T�A�B�B�BrE���c�����������������������|�S��NrD���rr���s��� rF���� __enter__zIMAP4.__enter__��s�������rE���c������������������l�����|�j���������dk����rd�S� �|�������������������������������������d�S�#�t����������$�r�Y�d�S�w�xY�w)Nr���)rS����logoutr`���)rb����argss��� rF����__exit__zIMAP4.__exit__��sL�������:��!�!��F� ��K�K�M�M�M�M�M���� �� �� ��D�D� ���s����%�� 3�3c������������������������|�|st����������d�������������|�j��������sd�n|�j��������}t����������j��������d|�|�j��������|�j���������������������||�j��������f}|�t����������j��������||������������S�t����������j��������|������������S�)Nz0Non-blocking socket (timeout=0) is not supportedzimaplib.open)� ValueErrorrc����sys�auditrd����socket�create_connection)rb���re���rc����addresss��� rF����_create_socketzIMAP4._create_socket#��s����������w���O�P�P�P��9�3�t�t�$�)��� �.�$�� �4�9�=�=�=����#�����+�G�W�=�=�=��'��0�0�0rE���c�����������������������||�_���������||�_��������|����������������������|������������|�_��������|�j�����������������������������d������������|�_��������dS�)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)rc���rd���r�����sock�makefile�filera���s��� rF���r\���z IMAP4.open0��sB��������� ��� ��'�'��0�0�� ��I�&�&�t�,�,�� � � rE���c������������������6�����|�j������������������������������|������������S��zRead 'size' bytes from remote.)r�����read�rb����sizes��� rF���r����z IMAP4.read<��s�������y�~�~�d�#�#�#rE���c�����������������������|�j������������������������������t����������dz���������������}t����������|������������t����������k����r|����������������������dt����������z���������������|S�)�Read line from remote.rx���zgot more than %d bytes)r�����readline�_MAXLINE�lenrG����rb����lines��� rF���r����zIMAP4.readlineA��sI�������y�!�!�(�Q�,�/�/���t�9�9�x����*�*�5��@�A�A�A��rE���c������������������f�����t����������j��������d|�|�������������|�j�����������������������������|�������������dS�)�Send data to remote.zimaplib.sendN)r����r����r�����sendall�rb����datas��� rF����sendz IMAP4.sendI��s2������� �.�$��-�-�-�� ���$�����rE���c������������������v����|�j��������������������������������������������� �|�j�����������������������������t����������j���������������������nB#�t����������$�r5}|j��������t����������j��������k����rt����������|dd������������dk����r��Y�d}~nd}~ww�xY�w|�j��������������������������������������������dS�#�|�j��������������������������������������������w�xY�w)� Close I/O established in "open".�winerrorr���i&'��N) r�����closer����r_���r����� SHUT_RDWRr`����errno�ENOTCONNr����)rb����excs��� rF���r_���zIMAP4.shutdownO��s�������� ������ ��I���v�/�0�0�0�0���� �� �� ��� �U�^�+�+��3� �A�.�.�%�7�7����������� ����� �I�O�O�������D�I�O�O�������s.����$A���B��� A?� +A:�5B��:A?�?B��B8c�����������������������|�j���������S�)zfReturn socket instance used to connect to IMAP4 server. socket = <instance>.socket() )r����rr���s��� rF���r����zIMAP4.socket_��s������ ��y�rE���c�����������������������d}|�����������������������ddg|������������\��}}|d���������r||fS�|������������������������������������\��}}|�����������������������|||������������S�)a��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. �RECENTrz���N���)�_untagged_response�noop�rb����name�typ�dats��� rF����recentzIMAP4.recentk��sd����������*�*�4�$���>�>���S��r�7�� ���8�O��9�9�;�;���S��&�&�s�C��6�6�6rE���c������������������V�����|�����������������������|dg|�����������������������������������������������S�)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)rb����codes��� rF����responsezIMAP4.response|��s&��������&�&�t�d�V�T�Z�Z�\�\�B�B�BrE���c����������������������d}|sd}|r|d���������|d���������fdk����rd|z��}nd}|rt����������|������������}nd}t�������������������������������t����������|������������}|�j��������rd|z���d z���}||�_��������|����������������������||||������������S�) z�Append message to named mailbox. (typ, [data]) = <instance>.append(mailbox, flags, date_time, message) All args except `message' can be None. r����INBOXr���r������(�)�(%s)Ns���UTF8 (����))r����MapCRLF�sub�CRLFri���rT����_simple_command)rb����mailbox�flags� date_time�messager����rT���s��� rF����appendzIMAP4.append���s������������ ��G��� ��a���r��#�y�0�0�������E��� �)�)�4�4�I�I��I��+�+�d�G�,�,����� 1��'�)�D�0�G�����#�#�D�'�5�)�D�D�DrE���c����������������������|������������������������������������}t����������|������������j��������|�_��������|����������������������d|������������\��}}|dk����r/|����������������������|d������������������������������dd�������������������������d|�_��������||fS�)as��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. r���rz���r����rt����replacer���)r�����_Authenticator�processrT���r����rG����decoderS���)rb���� mechanism� authobject�mechr����r����s��� rF����authenticatezIMAP4.authenticate���s}������ ���� � �� �&�j�1�1�9����'�'���=�=���S��$�;�;��*�*�S��W�^�^�G�Y�?�?�@�@�@��� ��C�x�rE���c������������������d�����d}|�����������������������|������������\��}}|����������������������|||������������S�)zT(typ, [data]) = <instance>.capability() Fetch capabilities list from server.r����r����r����r����s��� rF���� capabilityzIMAP4.capability���s8����������'�'��-�-���S��&�&�s�C��6�6�6rE���c������������������,�����|�����������������������d������������S�)zRCheckpoint mailbox on server. (typ, [data]) = <instance>.check() r����r����rr���s��� rF����checkzIMAP4.check���s������ ��#�#�G�,�,�,rE���c������������������d����� �|�����������������������d������������\��}}d|�_��������n#�d|�_��������w�xY�w||fS�)z�Close currently selected mailbox. Deleted messages are removed from writable mailbox. This is the recommended command before 'LOGOUT'. (typ, [data]) = <instance>.close() r���r����r����rS����rb���r����r����s��� rF���r����zIMAP4.close���sC������ ��+�+�G�4�4�H�C���D�J�J���D�J������C�x������"�� +c������������������0�����|�����������������������d||������������S�)z�Copy 'message_set' messages onto end of 'new_mailbox'. (typ, [data]) = <instance>.copy(message_set, new_mailbox) r���r����)rb����message_set�new_mailboxs��� rF����copyz IMAP4.copy���s������ ��#�#�F�K��E�E�ErE���c������������������.�����|�����������������������d|������������S�)zPCreate new mailbox. (typ, [data]) = <instance>.create(mailbox) r���r�����rb���r����s��� rF����createzIMAP4.create���������� ��#�#�H�g�6�6�6rE���c������������������.�����|�����������������������d|������������S�)zPDelete old mailbox. (typ, [data]) = <instance>.delete(mailbox) r���r����r����s��� rF����deletezIMAP4.delete���r����rE���c������������������0�����|�����������������������d||������������S�)z�Delete the ACLs (remove any rights) set for who on mailbox. (typ, [data]) = <instance>.deleteacl(mailbox, who) r���r����)rb���r�����whos��� rF���� deleteaclzIMAP4.deleteacl���s������ ��#�#�K��#�>�>�>rE���c������������������������d|�j���������vrt�������������������������������d�������������|����������������������d|������������\��}}|dk����r*d|�����������������������������������v�r|�������������������������������������||fS�)zlSend an RFC5161 enable string to the server. (typ, [data]) = <instance>.enable(capability) r���zServer does not support ENABLErz���zUTF8=ACCEPT)r����r���rG���r����r����ru���)rb���r����r����r����s��� rF����enablezIMAP4.enable���sw������ ��4�,�,�,��+�+�>�?�?�?��(�(��:�>�>� ��T��$�;�;�=�J�,<�,<�,>�,>�>�>��O�O�����D�y�rE���c������������������d�����d}|�����������������������|������������\��}}|����������������������|||������������S�)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. r���r����r����s��� rF����expungez IMAP4.expunge��s8����������'�'��-�-���S��&�&�s�C��6�6�6rE���c������������������h�����d}|�����������������������|||������������\��}}|����������������������|||������������S�)a#��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����)rb���r����� message_partsr����r����r����s��� rF����fetchzIMAP4.fetch��s<����������'�'��k�=�I�I���S��&�&�s�C��6�6�6rE���c������������������b�����|�����������������������d|������������\��}}|����������������������||d������������S�)zXGet the ACLs for a mailbox. (typ, [data]) = <instance>.getacl(mailbox) r!����ACLr�����rb���r����r����r����s��� rF����getaclzIMAP4.getacl(��s5������ ��'�'��'�:�:���S��&�&�s�C��7�7�7rE���c������������������f�����|�����������������������d|||������������\��}}|����������������������||d������������S�)za(typ, [data]) = <instance>.getannotation(mailbox, entry, attribute) Retrieve ANNOTATIONs.r"���� ANNOTATIONr����)rb���r�����entry� attributer����r����s��� rF���� getannotationzIMAP4.getannotation1��s9��������'�'���%��S�S���S��&�&�s�C��>�>�>rE���c������������������b�����|�����������������������d|������������\��}}|����������������������||d������������S�)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����)rb����rootr����r����s��� rF����getquotazIMAP4.getquota9��s5��������'�'� �D�9�9���S��&�&�s�C��9�9�9rE���c�����������������������|�����������������������d|������������\��}}|����������������������||d������������\��}}|����������������������||d������������\��}}|||gfS�)z�Get the list of quota roots for the named mailbox. (typ, [[QUOTAROOT responses...], [QUOTA responses]]) = <instance>.getquotaroot(mailbox) r$���r��� QUOTAROOTr����)rb���r����r����r�����quota� quotaroots��� rF����getquotarootzIMAP4.getquotarootD��sc������ ��'�'���@�@���S��,�,�S�#�w�?�?� ��U��0�0��c�;�G�G���Y��Y��&�&�&rE����""�*c������������������h�����d}|�����������������������|||������������\��}}|����������������������|||������������S�)z�List mailbox names in directory matching pattern. (typ, [data]) = <instance>.list(directory='""', pattern='*') 'data' is list of LIST responses. r&���r�����rb���� directory�patternr����r����r����s��� rF����listz IMAP4.listO���<����������'�'��i��A�A���S��&�&�s�C��6�6�6rE���c�����������������������|�����������������������d||����������������������|������������������������\��}}|dk����r|����������������������|d����������������������d|�_��������||fS�)z�Identify client using plaintext password. (typ, [data]) = <instance>.login(user, password) NB: 'password' will be quoted. r'���rz���r����r���)r�����_quoterG���rS���)rb����user�passwordr����r����s��� rF����loginzIMAP4.login[��sZ��������'�'���t�{�{�8�7L�7L�M�M���S��$�;�;��*�*�S��W�%�%�%��� ��C�x�rE���c������������������V�����||c|�_���������|�_��������|����������������������d|�j��������������������S�)zr Force use of CRAM-MD5 authentication. (typ, [data]) = <instance>.login_cram_md5(user, password) zCRAM-MD5)r#��r$��r�����_CRAM_MD5_AUTH)rb���r#��r$��s��� rF����login_cram_md5zIMAP4.login_cram_md5i��s-������ �$(�� �� �4�=�� � ��T�-@�A�A�ArE���c������������������������ddl�}t����������|�j��������t����������������������r|�j�����������������������������d������������n|�j��������}|�j��������dz���|���������������������||d�����������������������������������������������z���S�)z1 Authobject to use with CRAM-MD5 authentication. r���Nrt���� �md5)�hmac� isinstancer$���str�encoder#���HMAC� hexdigest)rb���� challenger,���pwds��� rF���r'��zIMAP4._CRAM_MD5_AUTHr��sl����������0:�4�=�#�0N�0N��@�t�}�#�#�G�,�,�,�26�-�� ��y�3�����3� �5�!A�!A�!K�!K�!M�!M�M�MrE���c������������������p�����d|�_���������|����������������������d������������\��}}|�������������������������������������||fS�)z|Shutdown connection to server. (typ, [data]) = <instance>.logout() Returns server 'BYE' response. r���)rS���r����r_���r����s��� rF���r����zIMAP4.logoutz��s8��������� ��'�'��1�1���S�� � �����C�x�rE���c������������������h�����d}|�����������������������|||������������\��}}|����������������������|||������������S�)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(���r����r��s��� rF����lsubz IMAP4.lsub���r ��rE���c������������������b�����|�����������������������d|������������\��}}|����������������������||d������������S�)z�Show my ACLs for a mailbox (i.e. the rights that I have on mailbox). (typ, [data]) = <instance>.myrights(mailbox) r%���r����r ��s��� rF����myrightszIMAP4.myrights���s5������ ��&�&�z�7�;�;���C��&�&�s�C��<�<�<rE���c������������������d�����d}|�����������������������|������������\��}}|����������������������|||������������S�)zb Returns IMAP namespaces ala rfc2342 (typ, [data, ...]) = <instance>.namespace() r*���r����r����s��� rF���� namespacezIMAP4.namespace���s8������ ����'�'��-�-���S��&�&�s�C��6�6�6rE���c������������������x����� �|�j���������dk����r|����������������������|�j���������������������|����������������������d������������S�)zFSend NOOP command. (typ, [data]) = <instance>.noop() Tr{���r+���)rR����_dump_urrV���r����rr���s��� rF���r����z IMAP4.noop���s;������ 7��z�Q���� � �d�5�6�6�6��#�#�F�+�+�+rE���c������������������l�����d}|�����������������������|||||������������\��}}|����������������������||d������������S�)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����)rb����message_num�message_part�start�lengthr����r����r����s��� rF����partialz IMAP4.partial���sA����������'�'��k�<��PV�W�W���S��&�&�s�C��9�9�9rE���c������������������2�����d}|�����������������������d|������������S�)z�Assume authentication as "user". Allows an authorised administrator to proxy into any user's mailbox. (typ, [data]) = <instance>.proxyauth(user) r-���r����)rb���r#��r����s��� rF���� proxyauthzIMAP4.proxyauth���s����������#�#�K��6�6�6rE���c������������������0�����|�����������������������d||������������S�)zkRename old mailbox name to new. (typ, [data]) = <instance>.rename(oldmailbox, newmailbox) r.���r����)rb���� oldmailbox� newmailboxs��� rF����renamezIMAP4.rename���s������ ��#�#�H�j�*�E�E�ErE���c������������������������d}|r5|�j���������rt�������������������������������d��������������|�j��������|d|g|�R���\��}}n�|�j��������|g|�R���\��}}|����������������������|||������������S�)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)ri���r���rG���r����r����)rb����charset�criteriar����r����r����s��� rF����searchzIMAP4.search���s������������ =�� �� M��k�k�"K�L�L�L�+�t�+�D�)�W�P�x�P�P�P�H�C���+�t�+�D�<�8�<�<�<�H�C���&�&�s�C��6�6�6rE���r����Fc������������������\����i�|�_���������||�_��������|rd}nd}|����������������������||������������\��}}|dk����rd|�_��������||fS�d|�_��������d|�j���������v�r@|s> �|�j��������dk����r|����������������������|�j����������������������|����������������������d |z���������������||�j������������������������������d dg������������fS�)at��Select 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. r���r0���rz���r���r���� READ-ONLYTrx���z%s is not writable�EXISTSN)rV���rX���r����rS���rR���r<��rN����get)rb���r����rN���r����r����r����s��� rF����selectzIMAP4.select���s��������#%���#����� ��D�D��D��'�'��g�6�6���S��$�;�;��D�J���8�O��� ��$�1�1�1� ��2� ;��:��?�?��M�M�$�"9�:�:�:��-�-� 4�w� >�?�?�?��D�+�/�/��4�&�A�A�A�ArE���c������������������2�����|�����������������������d|||������������S�)zZSet a mailbox acl. (typ, [data]) = <instance>.setacl(mailbox, who, what) r1���r����)rb���r����r�����whats��� rF����setaclzIMAP4.setacl��s������ ��#�#�H�g�s�D�A�A�ArE���c������������������R������|�j���������dg|�R���\��}}|����������������������||d������������S�)z_(typ, [data]) = <instance>.setannotation(mailbox[, entry, attribute]+) Set ANNOTATIONs.r2���r��r����)rb���r����r����r����s��� rF���� setannotationzIMAP4.setannotation ��s:�������(�4�'��?�$�?�?�?���S��&�&�s�C��>�>�>rE���c������������������d�����|�����������������������d||������������\��}}|����������������������||d������������S�)ziSet the quota root's resource limits. (typ, [data]) = <instance>.setquota(root, limits) r3���r��r����)rb���r���limitsr����r����s��� rF����setquotazIMAP4.setquota��s7������ ��'�'� �D�&�A�A���S��&�&�s�C��9�9�9rE���c�����������������������d}|d���������|d���������fdk����rd|z��}�|�j���������|||g|�R���\��}}|����������������������|||������������S�)z�IMAP4rev1 extension SORT command. (typ, [data]) = <instance>.sort(sort_criteria, charset, search_criteria, ...) r4���r���r����r����r����r����)rb���� sort_criteriarK���search_criteriar����r����r����s��� rF����sortz IMAP4.sort��si������ ���� �!��]�2�.�/�9�<�<�"�]�2�M�'�4�'��m�W�W��W�W�W���S��&�&�s�C��6�6�6rE���c������������������2����d}t�����������s|����������������������d�������������|�j��������r|����������������������d�������������||�j��������vr|����������������������d�������������|�t����������j����������������������}|����������������������|������������\��}}|dk����ra|���������������������|�j ��������|�j ���������������������|�_ ��������|�j �����������������������������d������������|�_��������d|�_��������|�� �����������������������������������n|����������������������d �������������|����������������������|||������������S�) Nr5���zSSL support missingzTLS session already establishedzTLS not supported by serverrz�����server_hostnamer����TzCouldn't establish TLS session)�HAVE_SSLrG���rZ���rK���r�����ssl�_create_stdlib_contextr�����wrap_socketr����rc���r����r����r����r����)rb����ssl_contextr����r����r����s��� rF����starttlszIMAP4.starttls)��s��������� 4��*�*�2�3�3�3�� �� @��*�*�>�?�?�?��t�(�(�(��*�*�:�;�;�;����4�6�6�K��'�'��-�-���S��$�;�;�#�/�/�� �@D� ��0��K��K�D�I�� �*�*�4�0�0�D�I�$(�D�!��"�"�$�$�$�$��*�*�=�>�>�>��&�&�s�C��6�6�6rE���c������������������h�����d}|�����������������������|||������������\��}}|����������������������|||������������S�)zpRequest named status conditions for mailbox. (typ, [data]) = <instance>.status(mailbox, names) r6���r����)rb���r�����namesr����r����r����s��� rF����statuszIMAP4.status@��s>������ �����'�'��g�u�=�=���S��&�&�s�C��6�6�6rE���c�����������������������|d���������|d���������fdk����rd|z��}|�����������������������d|||������������\��}}|����������������������||d������������S�)z�Alters flag dispositions for messages in mailbox. (typ, [data]) = <instance>.store(message_set, command, flags) r���r����r����r����r7���r ���r����)rb���r�����commandr����r����r����s��� rF����storezIMAP4.storeL��sZ������ � �!�H�U�2�Y��9�,�,��U�N�E��'�'���g�u�M�M���S��&�&�s�C��9�9�9rE���c������������������.�����|�����������������������d|������������S�)zYSubscribe to new mailbox. (typ, [data]) = <instance>.subscribe(mailbox) r8���r����r����s��� rF���� subscribezIMAP4.subscribeW��s������ ��#�#�K��9�9�9rE���c������������������Z�����d}�|�j���������|||g|�R���\��}}|����������������������|||������������S�)z�IMAPrev1 extension THREAD command. (type, [data]) = <instance>.thread(threading_algorithm, charset, search_criteria, ...) r9���r����)rb����threading_algorithmrK��r]��r����r����r����s��� rF����threadzIMAP4.thread_��sD������ ���'�4�'��.A�7�]�_�]�]�]���S��&�&�s�C��6�6�6rE���c������������������~����|������������������������������������}|t����������vr|����������������������d|z���������������|�j��������t����������|���������vrA|����������������������d|�d|�j���������dd���������������������t����������|������������������������������������d}�|�j��������||g|�R���\��}}|dv�r|}nd}|����������������������|||������������S�) 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/���r4���r9���r ���)r����r����rG���rS����joinr����r����)rb���rl��r����r����r����r����s��� rF����uidz IMAP4.uidi��s���������-�-�/�/���(�"�"��*�*�<�w�F�G�G�G��:�X�g�.�.�.��*�*�*�%�g�g�t�z�z�z�"�i�i���(9�:�:�:�<��=��=�� =����'�4�'��g�=��=�=�=���S��2�2�2��D�D��D��&�&�s�C��6�6�6rE���c������������������.�����|�����������������������d|������������S�)z_Unsubscribe from old mailbox. (typ, [data]) = <instance>.unsubscribe(mailbox) r;���r����r����s��� rF����unsubscribezIMAP4.unsubscribe���s������ ��#�#�M�7�;�;�;rE���c������������������d����� �|�����������������������d������������\��}}d|�_��������n#�d|�_��������w�xY�w||fS�)aM��Free 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<���r���r����)rb���r����r����s��� rF����unselectzIMAP4.unselect���sD������ ��,�,�Z�8�8�I�C���D�J�J���D�J������D�y�r����c������������������x�����|������������������������������������}|t����������vr|�j��������ft����������|<����|�j��������|g|�R���S�)a��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����rS���r�����rb���r����r����s��� rF����xatomzIMAP4.xatom���sF��������z�z�|�|����x���"�j�]�H�T�N�#�t�#�D�0�4�0�0�0�0rE���c����������������������|�d}|�j���������} �|�j��������dk����r@|����������������������d|�dt����������|���������������������|d�������������������������d|�d��������������||v�r||������������������������������|�������������d�S�|g||<���d�S�) NrE���T�����untagged_responses[z] rO���z += ["z"])rV���rR���r����r����rQ��r����)rb���r����r�����urs��� rF����_append_untaggedzIMAP4._append_untagged���s��������;��C� � $�� 9��z�Q���� � � ����c�"�&�&��R�.�.�1�1�1�1�3�3�3�8��9��9��9��"�9�9��s�G�N�N�3�������e�B�s�G�G�GrE���c�����������������������|�j������������������������������d������������}|r4|����������������������|d������������������������������|�j��������d�������������������������d�S�)N�BYEr����r����)rV���rQ��rK���r����rj���)rb����byes��� rF���� _check_byezIMAP4._check_bye���sS�������%�)�)�%�0�0���� H��*�*�S��W�^�^�D�N�I�F�F�G�G�G� H�� HrE���c����������������������|�j���������t����������|���������vrHd�|�_��������|����������������������d|�d|�j����������dd���������������������t����������|������������������������������������dD�]}||�j��������v�r|�j��������|=��d|�j��������v�r|�j��������s|����������������������d�������������|������������������������������������}t����������||�j ��������������������}|dz���|z���}|D�]7}|��t����������|t����������������������rt����������||�j ��������������������}|dz���|z���}�8|�j��������}|�Wd�|�_��������t����������|������������t����������|�j��������������������u�r|}n*d�}|t����������d t����������|������������z��|�j ��������������������z���} �|�j��������dk����r|����������������������d|z���������������n|����������������������d|z��������������� �|����������������������|t(����������z����������������n*#�t*����������$�r} |����������������������d | z���������������d�} ~ ww�xY�w|�|S� �|������������������������������������r#|�j��������|���������r|S�|�������������������������������������#|r�||�j��������������������} �|�j��������dk����r%|����������������������dt����������|������������z��������������� �|����������������������|�������������|����������������������t(�����������������������n*#�t*����������$�r} |����������������������d | z���������������d�} ~ ww�xY�w|sn��|S�)Nrt��ru��rv��rw���rz����NO�BADrO��z#mailbox status changed to READ-ONLY���� z {%s}T����z> %rzsocket error: %srx���zwrite literal size %s)rS���r����rT���rG���rx��rV���rX���rN����_new_tag�bytesrj���r-��r.���type�_commandr����rR���r�����_logr����r����r`���rK���r����rU���rW���) rb���r����r����r�����tagr�����argrT���� literator�vals ��� rF���r���zIMAP4._command���s.������:�X�d�^�+�+��D�L��*�*�*�"�d�d�D�J�J�J�"�i�i����7�7�7�9��:��:�� :� �'�� 1�� 1�C��d�-�-�-��+�C�0���$�1�1�1�� ��2��-�-� E�F�F�F��m�m�o�o���T�4�>�*�*���T�z�D� ���� %�� %�C��{�H��#�s�#�#�� 1��C���0�0���$�;��$�D�D��,�����D�L��G�}�}��T�]� 3� 3�3�3�#� � � � ��e�G�c�'�l�l�$:�D�N�K�K�K�� )��z�Q���� � �6�D�=�)�)�)�)�� � �&�4�-�(�(�(� 7��I�I�d�T�k�"�"�"�"���� 7�� 7�� 7��*�*�/�#�5�6�6�6����� 7������?��J� ���$�$�&�&�� ��'��,����J���$�$�&�&�� ���� @�#�)�D�$>�?�?�� G��:��?�?��J�J�6��W���E�F�F�F� ;�� � �'�"�"�"�� � �$�������� ;�� ;�� ;��j�j�!3�c�!9�:�:�:����� ;������� ��/ �2�� s0����!F?��? G&� G!�!G&�)/J�� K��#J;�;K�c����������������������|dk����}|s|�������������������������������������� �|����������������������||�������������\��}}nU#�|�j��������$�r }|����������������������d|�d|���������������d�}~w|�j��������$�r }|����������������������d|�d|���������������d�}~ww�xY�w|s|��������������������������������������|dk����r|����������������������|�d|�d|���������������||fS�)Nr���)� expect_byez command: � => r���z command error: r*��)r����_get_tagged_responserK���rG���)rb���r����r���r����r����r����r���s��� rF����_command_completezIMAP4._command_complete��s������(�"���� ��O�O���� @��1�1�#�&�1�I�I�I�C�����z�� @�� @�� @��*�*�*�D�D�D�#�#�>�?�?�?������z�� @�� @�� @��*�*�*�D�D�D�#�#�>�?�?�?����� @������ ��O�O�����%�<�<��*�*�$�$�$����T�T�J�K�K�K��D�y�s!����9�� B�A� B�+B�Bc����������������������|�������������������������������������\��}}|d�gk����r|����������������������d�������������t����������|d���������|�j��������������������}|�����������������������������������}t����������|�����������������������������������������������|�_��������d�S�)Nz"no CAPABILITY response from serverr����)r����rG���r.��rj���r�����tuple�splitr����r����s��� rF���r����zIMAP4._get_capabilities#��ss�������?�?�$�$���S��4�&�=�=��*�*�A�B�B�B��#�b�'�4�>�*�*���i�i�k�k��!�#�)�)�+�+�.�.����rE���c����������������������|�������������������������������������}|����������������������|�j��������|������������r�|�j�����������������������������d������������}||�j��������vr|����������������������d|z���������������|�j�����������������������������d������������}t����������||�j��������������������}|�j�����������������������������d������������}||gf|�j��������|<����n�d�}|����������������������t����������|������������s5|����������������������|�j ��������|������������r|�j�����������������������������d������������}|�j���������T|����������������������t����������|������������r!|�j�����������������������������d������������|�_��������d�S�|����������������������d|z���������������|�j�����������������������������d������������}t����������||�j��������������������}|�j�����������������������������d������������}|�d}|r|dz���|z���}|����������������������|�j ��������|������������r�t����������|�j�����������������������������d ������������������������} �|�j��������dk����r|����������������������d|z���������������|����������������������|������������}|����������������������|||f�������������|�������������������������������������}|����������������������|�j ��������|��������������|����������������������||�������������|d v�rx|����������������������t&����������|������������r]|�j�����������������������������d������������}t����������||�j��������������������}|����������������������||�j�����������������������������d������������������������� �|�j��������dk����r|dv�r|����������������������|�d|���������������|S�)Nr���zunexpected tagged response: %rr���r�����data2zunexpected response: %rrE���r���r����Tr���zread literal size %sr���rx���)r���r���r���z response: )� _get_line�_matchr����mo�grouprU���rK���r.��rj����Untagged_responserq����ContinuationrW���ro����intrR���r����r����r���� Response_code)rb����respr���r����r�����dat2r����r����s��� rF���r����zIMAP4._get_response,��s�������~�~������;�;�t�z�4�(�(��5 ,��'�-�-��&�&�C��$�.�.�.��j�j�!A�D�!H�I�I�I��'�-�-��'�'�C��c�4�>�*�*�C��'�-�-��'�'�C�),�s�e��D� ��%�%��D���;�;�0�$�7�7�� 2��;�;�t�3�T�:�:��2��7�=�=��1�1�D��w����;�;�|�T�2�2�� �15����v�1F�1F�D�.��4��j�j�!:�T�!A�B�B�B��'�-�-��'�'�C��c�4�>�*�*�C��'�-�-��'�'�C��{�#�C��,�3��:��,�S���+�+�d�l�C�0�0�� '���4�7�=�=��0�0�1�1��B��z�Q���� � �#9�D�#@�A�A�A��y�y�������%�%�c�C��;�7�7�7���n�n�&�&��!��+�+�d�l�C�0�0�� '�$� �!�!�#�s�+�+�+���%�%�%�$�+�+�m�S�*I�*I�%��'�-�-��'�'�C��c�4�>�*�*�C��!�!�#�t�w�}�}�V�'<�'<�=�=�=� ;��z�Q���3�*>�#>�#>�� � ����S�S�9�:�:�:��rE���c������������������<���� �|�j���������|���������}|� |�j���������|=�|S�|r#d}|�j�����������������������������|d�������������}|�||fS�|������������������������������������� �|�������������������������������������n3#�|�j��������$�r&} �|�j��������dk����r|���������������������������������������d�}~ww�xY�w��)Nrx���r���)rU���rV����popr���r����rK���rR���� print_log)rb���r���r����resultr����r���r���s��� rF���r���zIMAP4._get_tagged_response|��s������� ��)�#�.�F��!��(��-�� ��� &����-�1�1�#�t�<�<���?���:�%�� �O�O���� ��"�"�$�$�$�$���:�� �� �� �)��z�Q������(�(�(������ ����1 s����A*��* B�4!B�Bc������������������D����|�������������������������������������}|s|����������������������d�������������|���������������������d������������s|����������������������d|z���������������|d�d����������} �|�j��������dk����r|����������������������d|z���������������n|����������������������d|z���������������|S�)Nzsocket error: EOFr ���z#socket error: unterminated line: %r���Tr���z< %r)r����rK����endswithrR���r����r���r����s��� rF���r���zIMAP4._get_line���s��������}�}������ 2��*�*�0�1�1�1���}�}�W�%�%�� K��*�*�B�T�I�J�J�J��C�R�C�y�� )��z�Q���� � �6�D�=�)�)�)�)�� � �&�4�-�(�(�(��rE���c������������������������|����������������������|������������|�_�������� �|�j���������B|�j��������dk����r7|����������������������d|j���������d|�j����������������������������������������������������������|�j��������d�uS�)NTr���z matched r���)�matchr���rR���r����r���groups)rb����cre�ss��� rF���r���zIMAP4._match���sh������ ��)�)�A�,�,��� S��w�"�t�z�Q���� � � �3�;�;�;�����@P�@P�@P�Q�R�R�R��w�d�"�"rE���c�����������������������|�j���������t����������t����������|�j��������������������|�j��������������������z���}|�j��������dz���|�_��������d�|�j��������|<���|S�)Nrx���)r~���r���r.��rY���rj���rU���)rb���r���s��� rF���r���zIMAP4._new_tag���sC�������k�E�#�d�k�"2�"2�D�N�C�C�C���k�A�o���$(���S�!�� rE���c������������������j�����|����������������������dd������������}|����������������������dd������������}d|z���dz���S�)N�\z\\�"z\")r����)rb���r���s��� rF���r"��zIMAP4._quote���s6�������k�k�$��'�'���k�k�#�u�%�%���S�y�3��rE���c������������������F�����|�����������������������|�|�j��������|g|�R���������������S�r����)r���r���r��s��� rF���r����zIMAP4._simple_command���s,�������%�%�d�M�D�M�$�,F��,F�,F�,F�G�G�GrE���c�����������������������|dk����r||fS�||�j���������vr|d�gfS�|�j������������������������������|������������} �|�j��������dk����r|����������������������d|�d|���������������||fS�)Nr���Tr���r���z] => )rV���r���rR���r����)rb���r����r����r����r����s��� rF���r����zIMAP4._untagged_response���s~�������$�;�;���8�O��t�.�.�.����;���&�*�*�4�0�0�� J��z�Q���� � � �T�T�T�4�4�H�I�I�I��D�y�rE���Tc����������������������|�t����������j�����������������������}t����������j��������dt����������j��������|������������������������}t����������j�����������������������������d||dz��dz��|fz���������������t����������j��������������������������������������������d�S�)Nz%M:%Sz %s.%02d %s �d���)�time�strftime� localtimer�����stderr�write�flush)rb���r����secs�tms��� rF���r����zIMAP4._mesg���sr�������|��y�{�{����w���t�(<�(<�=�=�B��J���-��d�3�h��^�Q�0G�G�H�H�H��J�������rE���c�����������������������|sd�S�d��|������������������������������������D���������������}|����������������������dd���������������������|������������z����������������d�S�)Nc��������������3����*���K����|�]\��}}|��d�|��V����dS�)�: NrD���)�.0�key�values��� rF���� <genexpr>z!IMAP4._dump_ur.<locals>.<genexpr>���sP�����������B��B�"��U���(�(�u�(�(��B��B��B��B��B��BrE���zuntagged responses dump:z )�itemsr����rx��)rb����untagged_resp_dictr���s��� rF���r<��zIMAP4._dump_ur���sh������%�� ���B��B�&8�&>�&>�&@�&@�B��B��B�E��J�J�1�H�M�M�%�4H�4H�H�I�I�I�I�IrE���c�����������������������|t����������j�����������������������f|�j��������|�j��������<���|�xj��������dz ��c_��������|�j��������|�j��������k����r d|�_��������d�S�d�S�)Nrx���r���)r���r����r����r����r����s��� rF���r���z IMAP4._log���sW������04�d�i�k�k�/B�D�M�$�+�,�����"���� �D�$5�5�5�$%��!�!�!��6�5rE���c������������������������|�����������������������dt����������|�j��������������������z���������������|�j��������|�j��������}}|r9 ��|�j���������|�j��������|������������n#��Y�nxY�w|dz ��}||�j��������k����rd}|dz��}|�7d�S�d�S�)Nzlast %d IMAP4 interactions:rx���r���)r����r����r����r����r����)rb����i�ns��� rF���r���zIMAP4.print_log���s��������J�J�4�s�4�=�7I�7I�I�J�J�J��$�d�&7�q�A��� ���D�J�� �a� 0�1�1�1����D�����Q�����)�)�)��A��Q������ �� �� �� �� s����A��A)r��r��)r����Fr����)F)UrA���rB���rC����__doc__r^���rG���rK���rN���� IMAP4_PORTrf���r[���ru���r]���r����r����r����r����r\���r����r����r����r_���r����r����r����r����r����r����r����r����r����r����r����r����r��r��r��r ��r��r��r��r��r%��r(��r'��r����r6��r8��r:��r����rB��rD��rH��rM��rR��rU��rW��rZ��r^��rg��rj��rm��ro��rr��ry��r{��r}��r���r���r���r���r���r����r����r���r���r���r���r"��r����r����r����r<��r���r���rD���rE���rF���r���r�������sS�������������-��-�^�!� � � � � � � � ���������������5�����Z����������2F��F��F�<��<��<�'7��'7��'7�TC��C��C�����������1��1��1����T�� -�� -�� -�� -�$��$��$� ����� �� �� � �� �� � �����7��7��7�"C��C��C�E��E��E�4�����:7��7��7�-��-��-������F��F��F�7��7��7�7��7��7�?��?��?� �� �� �7��7��7�7��7��7�8��8��8�?��?��?�:��:��:�'��'��'� 7�� 7�� 7�� 7������B��B��B�N��N��N� �� �� � 7�� 7�� 7�� 7�=��=��=�7��7��7�,��,��,� :�� :�� :� 7�� 7�� 7�F��F��F�7��7��7�$B��B��B��B�@B��B��B�?��?��?�:��:��:�7��7��7�7��7��7��7�. 7�� 7�� 7�:��:��:�:��:��:�7��7��7�7��7��7�2<��<��<� �� �� � 1��1��1�,�����H��H��H�J��J��J�Z�����$/��/��/�M��M��M�`�������B�����& #�� #�� #�����������H��H��H� �� �� �"� �� �� �� � J�� J�� J� &�� &�� &� �� �� �� �� rE���r���c��������������������:�����e�Zd�ZdZdeddddfd�Zd��Zdedfd�ZdS�)� IMAP4_SSLa���IMAP4 client class over SSL connection Instantiate with: IMAP4_SSL([host[, port[, keyfile[, certfile[, ssl_context[, timeout=None]]]]]]) host - host's name (default: localhost); port - port number (default: standard IMAP4 SSL port); keyfile - PEM formatted file that contains your private key (default: None); certfile - PEM formatted certificate chain file (default: None); ssl_context - a SSLContext object that contains your certificate chain and private key (default: None) Note: if ssl_context is provided, then parameters keyfile or certfile should not be set otherwise ValueError is raised. 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. rO���Nc������������������.����|�|�t����������d�������������|�|�t����������d�������������|�|� dd�l}|���������������������dt����������d�������������||�_��������||�_��������|�t ����������j��������||�������������}||�_��������t����������� ��������������������|�|||�������������d�S�)Nz8ssl_context and keyfile arguments are mutually exclusivez9ssl_context and certfile arguments are mutually exclusiver���zEkeyfile and certfile are deprecated, use a custom ssl_context instead����)�certfile�keyfile)r�����warnings�warn�DeprecationWarningr���r���rc��rd��rf��r���rf���)rb���rc���rd���r���r���rf��re���r���s��� rF���rf���zIMAP4_SSL.__init__��s��������&�7�+>� ��"-��.��.��.��&�8�+?� ��"-��.��.��.��"�h�&:������ � ��;�<N�PQ�S��S��S�"�D�L�$�D�M��"�!�8�(�AH�J��J��J��*�D���N�N�4��t�W�5�5�5�5�5rE���c������������������z�����t��������������������������������|�|������������}|�j�����������������������������||�j���������������������S�)Nr`��)r���r����rf��re��rc���)rb���re���r����s��� rF���r����zIMAP4_SSL._create_socket-��sA�������'�'��g�6�6�D��#�/�/��@D� ��0��K��K�� KrE���c������������������@�����t��������������������������������|�|||�������������dS�)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)r���r\���ra���s��� rF���r\���zIMAP4_SSL.open2��s"������� �J�J�t�T�4��1�1�1�1�1rE���)rA���rB���rC���r����IMAP4_SSL_PORTrf���r����r\���rD���rE���rF���r���r�����sq�������������� �� �&�!#���"��d� 6�� 6�� 6�� 6�( K�� K�� K� ��^�T�� 2�� 2�� 2�� 2�� 2�� 2rE���r���c��������������������8�����e�Zd�ZdZd��Zd d�Zd��Zd��Zd��Zd��Z dS�) r���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������������������H�����||�_���������t�������������������������������|��������������d�S�r����)rl��r���rf���)rb���rl��s��� rF���rf���zIMAP4_stream.__init__I��s!��������� ���t�����rE���Nc�����������������������d|�_���������d|�_��������d|�_��������d|�_��������t ����������j��������|�j��������t����������t����������j��������t����������j��������dd�������������|�_ ��������|�j ��������j ��������|�_��������|�j ��������j��������|�_ ��������dS�)z�Setup a stream connection. This connection will be used by the routines: read, readline, send, shutdown. NT)�bufsize�stdin�stdout�shell� close_fds)rc���rd���r����r����� subprocess�Popenrl��r����PIPEr����r���� writefiler����readfilera���s��� rF���r\���zIMAP4_stream.openN��sl������ ��� ��� ��� ��� �!�'���'��/�*�/��$�(��(��(������+�����+�� � � rE���c������������������6�����|�j������������������������������|������������S�r����)r���r����r����s��� rF���r����zIMAP4_stream.read^��s�������}�!�!�$�'�'�'rE���c������������������4�����|�j��������������������������������������������S�)r����)r���r����rr���s��� rF���r����zIMAP4_stream.readlinec��s�������}�%�%�'�'�'rE���c������������������l�����|�j������������������������������|�������������|�j���������������������������������������������dS�)r����N)r���r���r���r����s��� rF���r����zIMAP4_stream.sendh��s2����������T�"�"�"���������rE���c�����������������������|�j���������������������������������������������|�j��������������������������������������������|�j��������������������������������������������dS�)r����N)r���r����r���r�����waitrr���s��� rF���r_���zIMAP4_stream.shutdownn��sD������� ���������������������rE���)NNN) rA���rB���rC���r���rf���r\���r����r����r����r_���rD���rE���rF���r���r���=��s}���������������������� ,��,��,��,� (��(��(� (��(��(� �������������rE���r���c��������������������*�����e�Zd�ZdZd��Zd��Zd��Zd��ZdS�)r����zcPrivate class to provide en/decoding for base64-based authentication conversation. c�����������������������||�_���������d�S�r����)r����)rb����mechinsts��� rF���rf���z_Authenticator.__init__|��s �������� � � rE���c�����������������������|�����������������������|����������������������|������������������������}|�dS�|����������������������|������������S�)N����*)r����r����r/��)rb���r�����rets��� rF���r����z_Authenticator.process��s;�������i�i����D�)�)�*�*���;��4��{�{�3���rE���c����������������������d}t����������|t����������������������r|���������������������d������������}|rQt����������|������������dk����r|d�d����������}|dd�����������}n|}d}t ����������j��������|������������}|r ||d�d����������z���}|�Q|S�)NrE���rt����0���r����)r-��r.��r/��r�����binascii� b2a_base64)rb����inp�oup�t�es��� rF���r/��z_Authenticator.encode���s�����������c�3���� &��*�*�W�%�%�C��� #��3�x�x�"�}�}�����H���"�#�#�h��������#�A�&�&�A��� #��A�c�r�c�F�l����� #��� rE���c������������������2�����|sdS�t����������j��������|������������S�)NrE���)r���� a2b_base64)rb���r���s��� rF���r����z_Authenticator.decode���s �������� ��3��"�3�'�'�'rE���N)rA���rB���rC���r���rf���r����r/��r����rD���rE���rF���r����r����v��sZ���������������������� �� �� ������0(��(��(��(��(rE���r����z0 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Decr*��c������������������D�����i�|�]\��}}|������������������������������������|d�z�����S�)rx���)r/��)r���r���r���s��� rF���� <dictcomp>r�����s*������ <� <� <�d�a��1�8�8�:�:�a��c� <� <� <rE���rx���c����������� �����������t��������������������������������|�������������}|sdS�t����������|���������������������d���������������������}|���������������������d������������}t ����������|���������������������d������������������������}t ����������|���������������������d������������������������}t ����������|���������������������d������������������������}t ����������|���������������������d������������������������}t ����������|���������������������d������������������������}t ����������|���������������������d ������������������������} t ����������|���������������������d ������������������������} | dz��| z���dz��}|dk����r|�}||||||d d d f }t����������j��������|������������|z ��} t����������j��������| ������������S�)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 ��r ��r��r��r ��r��r��r��r���zone�tt�utcs��� rF���r ���r ������sS������ � � �D� !� !�B� ����t� �"�(�(�5�/�/� "�C��H�H�W���E� �b�h�h�u�o�o� � �C��r�x�x���� � �D��r�x�x���� � �D� �b�h�h�u�o�o� � �C� �b�h�h�u�o�o� � �C������!�!�"�"�E������!�!�"�"�E�� �"�H�u��b� �D���}�}��u�� ��S�$��S�"�b�"� 5�B� �/�"� � �� $�C��>�#���rE���c�����������������������d}d}t����������t����������|�������������������������}�|�r%t����������|�d������������\��}�}|||dz�������������|z���}|��%|S�)z-Convert integer to A-P string representation.rE���s���ABCDEFGHIJKLMNOP����rx���)r����abs�divmod)�numr����AP�mods��� rF���r ���r ������s_��������C�'�r� �c�#�h�h�-�-�C� ��"��#�r�?�?���S���S��U��m�c�!�����"���JrE���c�����������������������t��������������������������������|�������������}|sdS�t����������|���������������������d�����������������������������������������������������������S�)z-Convert IMAP4 flags response to python tuple.rD���r����)�Flagsr���r���r���r���)r���r���s��� rF���r���r������sH������� ���T� � �B� ����r�����'�"�"�(�(�*�*�+�+�+rE���c����������������������t����������|�t����������t����������f������������r3t����������j��������|�t ����������j�������������������������������������������������������}�n;t����������|�t����������������������r� �|�j ��������}n�#�t����������$�rv�t����������j��������rZ|�d���������}|dk����r,t����������j ��������t����������j��������|�������������������������d���������}t����������j��������t����������j��������f|����������}n t����������j���������}Y�nw�xY�wt!����������|�������������}t����������|�dd����������dt����������|������������i�}nht����������|�t����������������������r|�j���������t%����������d�������������|�}n:t����������|�t&����������������������r|�d���������|�d���������fd k����r|�S�t%����������d �������������d���������������������t*����������|j�����������������������������}|���������������������|������������S�)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���)r���r���zdate_time not of a known typez"%d-{}-%Y %H:%M:%S %z")r-��r����floatr���� fromtimestampr���r��� astimezoner���� tm_gmtoffr����r����daylightr����mktime�altzoner���r(��r����r.���format�Months�monthr���)r�����dt�gmtoff�dst�delta�fmts��� rF���r���r������s��������)�c�5�\�*�*��:� � #�I�$,�L�2��2�2<�*�,�,�� �� �I�u� %� %��:� (��(�F�F���� (�� (�� (��}�� (���l���"�9�9��.���Y�)?�)?�@�@��C�C��=�$�,�7��<�<����-����� (������&�)�)�)�� �y��!��}� =�X�e�_�_� =� =��� �I�x� (� (��:���#��6�7�7�7� ��� �I�s� #� #��:��1��i��m�(D� �(Q�(Q����8�9�9�9� "� )� )�&���*:� ;� ;�C� �;�;�s���s����&A.��.A=C.�-C.�__main__zd:s:)rD���rD���z-dz-s)rO���zIMAP password for z on � localhostr���zJFrom: %(user)s@localhost%(lf)sSubject: IMAP4 test%(lf)s%(lf)sdata...%(lf)s� )r#���lfr%��)r����)� /tmp/xxx 1)rH��)r<��z/tmp/yyy)r����� /tmp/yyz 2r����r>��)r��)z/tmpzyy*)rR��r=��)rM��)N�SUBJECT�test)r��)�1z(FLAGS INTERNALDATE RFC822))rm��)rA���FLAGSz (\Deleted))r:��rD���)r��rD���)r����rD���)r����rD���)rR��rD���)r����)�UIDVALIDITY)ry��)r/����ALL)r����)rP��)r����rD���c������������������������t��������������������������������|��d|����������������t����������t�����������|�������������|��\��}}t��������������������������������|��d|�d|���������������|dk����r|d����������|S�)Nr*��r���r���r���)�Mr����r����)�cmdr����r����r����s��� rF����runrH��A��sp������ ���3�3�3���%�&�&�&�"�7�1�c�?�?�D�)���S� ������c�c�c�3�3�/�0�0�0��$�;�;�c�!�f��� rE���r���zPROTOCOL_VERSION = %szCAPABILITIES = r��)z/tmp/zyy%z.*"([^"]+)"$r����r����ry��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 )Ur���r����r���r����r|���rk���r����r���r����r���r��r���r���r����ior���rc��rb���ImportError�__all__r����rQ���r���r���r����r����r����rl���r���r#��r��rn���ro���r����r���r���rq���rm���rp���r���r���r����r���r����r���r1��� enumerater��r ���r ���r���r���rA����getopt�getpass�argv�optlistr����rG���r����stream_command�optr���rc����getuser�USER�PASSWD� test_mesg� test_seq1� test_seq2rH��rF��rS���r����r����r����rG���mlr���r���r����pathr����ry���printrD���rE���rF����<module>r\�����s����� �� �,����K��K��K��K��K��K��K��K��K��K��K��K��K��K��K��K��K��K��K��K��K��K��K��K��K��K��K��K��K��K��K��K��K��K��K��K��2��2��2��2��2��2��2��2��2��2��"��"��"��"��"��"���J�J�J��H�H����������H�H�H�����8��8��8�� ��� �� � ���(����� , ��,�, �� ��, �� �A� , � � � �, �� � � , �� � �, �� �,�, �� �,�, �� �,�, �� � �, �� �,�, �� � �, �� � �, �� �,�, � � �,�!, �"� �,�#, �$� �,�%, ��, �&� �,�', �(� �,�), �*� ��+, �,� �A�-, �.� �,�/, �0� � �1, �2� �,�3, �4� �A�5, �6� � �7, �8� � �9, �:� �,�;, �<� � �=, �>� �,�?, �@� �,�A, �B� �,�C, �D� �,�E, �F� � �G, ��, �H�%�,�%�,�%�%�,�%�W, ��, ��, ��`��r�z�0�1�1���� �4�5�5���r�z����������"�*�+�R�X� 6� 6�� �"�*�^� $� $����� �D�E�E� ��B�J�G�H�H����"�*�;�R�X�G��G���"��J���x��x��x��x��x��x��x��x�v#���8 �42��42��42��42��42�E��42��42��42�l��N�N�;����5��5��5��5��5�5��5��5��5�r*(��*(��*(��*(��*(��*(��*(��*(�X� <� A� A�#� F� F�� <� <�i�i��q�r�r� �&;�&;� <� <� <�������F �� �� �,��,��,�%��%��%�R��z�������������%�� �c�h�q�r�r�l�F�;�;� ������<�������� ������������������N���2��2���C��$�;�;��C��H�H�E�E� �D�[�[� �N��1�� 1���������7�D��7�?���D� �W�_�_�t�t�t�T�EX�[�EX�EX�Y� Z� Z�F�\�gk�rv�_w�_w�w�I��t�V�n���*�� ��d�D�)�4�5���)�3�,������I�$��!��� ��d�D�)�,�-����I������)��� ���^�,�,�A�A���d���A��7�f���!�!�"�"� �I� ���'�!�*<�<�=�=�=� ����q�~�~�7�8�8�8�!�� �� �H�C���C��T�N�N�N�N��#�f�.�/�/�� #�� #�B����/�2�.�.�B��� (�"�(�(�1�+�+�4�4������B��$��C��4�'�"�"�"�"�!�� S�� S�H�C���#�c�4�.�.�C��D�z�7�7�7���b�'�-�-�/�/�C�� ���C�����B���P�R�� S�� S�� S�� S�� ��� � � � � �� � ��� � � ��� ��E���� �h�q�k��� �� �� � � ����Q��s6����A��A� A�>!H �� H9�*H4�4H9�D8P��)P1