관리-도구
편집 파일: imaplib.cpython-310.opt-2.pyc
o 6��fR� � @ s" d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl m Z mZmZ ddl mZ zddlZdZW n eyJ dZY nw g d�ZdZdZd Zd ZdZdZi d d�dd�dd�dd�dd�dd�dd�dd�dd�dd�dd�dd�dd�dd�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�d/d�d0d�d1d�d2d�d3d��ddddddddd4��Ze�d5�Ze�d6�Ze�d7�Ze�d8ej�Ze�d9�Z e�d:�Z!e�d;�Z"e�d<ej�Z#d8Z$d<Z%G d=d>� d>�Z&e�rG d?d@� d@e&�Z'e�(d@� G dAdB� dBe&�Z)G dCdD� dD�Z*dE�+dF�Z,dGdH� e-e,dId� �D �Z.dJdK� Z/dLdM� Z0dNdO� Z1dPdQ� Z2e3dRk�r�ddl4Z4ddl5Z5ze4�4ej6dId� dS�\Z7Z8W n e4j9�y| Z: z dT\Z7Z8W Y dZ:[:ndZ:[:ww dZ;e7D ]\Z<Z:e<dUk�r�e=e:�Z�q�e<dVk�r�e:Z;e8�s�e;fZ8�q�e8�s�dWZ8e8d Z>e5�?� Z@e5�5dXe@e>�p�dYf �ZAdZe@d[d\� ZBd]e@eAffd^d_d`dadbddeBffdcdddedfdgdhdidjdkfZCdldmdndodadddeBffdjdpfZDdqdr� ZEz�e;�r�e)e;�ZFne&e>�ZFeFjGdsk�reCdId� ZCeF�HdteFjI � eF�HdueFjJf � eCD ] \ZKZ8eEeKe8� �qeEdvdw�D ]ZLe�MdxeL�ZNeN�r9eN�OdI�ZPneL�+� dy ZPeEdzePf� �q(eDD ]*\ZKZ8eEeKe8�ZQeKe8fdnk�r[�qIeQdy �+� ZReR�sf�qIeEd{dd|eRdy d}f� �qIeSd~� W dS eSd� e�s�eSd�ej6d � � dS )�z2.58� N)�datetime�timezone� timedelta)�DEFAULT_BUFFER_SIZETF)�IMAP4�IMAP4_stream�Internaldate2tuple�Int2AP� ParseFlags�Time2Internaldate� � i� )Z 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 �LSUBZMOVE� 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 @ s� e Zd Z G dd� de�ZG dd� de�ZG dd� de�Zdedfd d �Zdd� Z d d� Z dd� Zdd� Zdd� Z dd� Zdd� Zdedfdd�Zdd� Zdd� Zdd � Zd!d"� Zd#d$� Zd%d&� Zd'd(� Zd)d*� Zd+d,� Zd-d.� Zd/d0� Zd1d2� Zd3d4� Zd5d6� Zd7d8� Zd9d:� Z d;d<� Z!d=d>� Z"d?d@� Z#dAdB� Z$dCdD� Z%dEdF� Z&dGdH� Z'd�dKdL�Z(dMdN� Z)dOdP� Z*dQdR� Z+dSdT� Z,d�dUdV�Z-dWdX� Z.dYdZ� Z/d[d\� Z0d]d^� Z1d_d`� Z2dadb� Z3dcdd� Z4d�dgdh�Z5didj� Z6dkdl� Z7dmdn� Z8dodp� Z9d�dqdr�Z:dsdt� Z;dudv� Z<dwdx� Z=dydz� Z>d{d|� Z?d}d~� Z@dd�� ZAd�d�� ZBd�d�� ZCd�d�� ZDd�d�� ZEd�d�� ZFd�d�� ZGd�d�� ZHd�d�d��ZId�d�� ZJd�d�� ZKd�d�� ZLd�d�� ZMd�d�� ZNd�d�� ZOdS )�r c @ � e Zd ZdS )zIMAP4.errorN��__name__� __module__�__qualname__� r? r? �./opt/alt/python310/lib64/python3.10/imaplib.py�error� � rA c @ r: )zIMAP4.abortNr; r? r? r? r@ �abort� rB rC c @ r: )zIMAP4.readonlyNr; r? r? r? r@ �readonly� rB rD � Nc C s� t | _d| _d | _i | _i | _d| _d| _d| _d| _ | � � | �|||� z| �� W d S t yD z| �� W � tyC Y � w w )Nr rE 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�timeoutr? r? r@ �__init__� s, ���zIMAP4.__init__c C s0 d| _ d| _t�ttj�| _t�ttj�| _d S )NF�ascii) �utf8_enabled� _encoding�re�compile�_Literal�ASCII�Literal�_Untagged_status�Untagged_status�rW r? r? r@ rP � s zIMAP4._mode_asciic C s( d| _ d| _t�t�| _t�t�| _d S )NT�utf-8)r] r^ r_ r` ra rc rd re rf r? r? r@ � _mode_utf8� s zIMAP4._mode_utf8c C s� t t�dd��| _t�d| j d tj�| _ | �� | _d| jv r%d| _nd | jv r.d| _n| �| j��| �� tD ] }|| jvrCq;|| _ d S | �d��)Ni i�� s (?P<tag>s"