Hacked By AnonymousFox

Current Path : /opt/alt/python37/lib64/python3.7/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/__pycache__/mailbox.cpython-37.opt-2.pyc

B

YI~d>3�@sNddlZddlZddlZddlZddlZddlZddlZddlZddlZddl	Zddl
Z
ddlZyddlZWne
k
r�dZYnXdddddddd	d
ddd
dddddgZej�d�ZGdd�d�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�dejj�ZGdd	�d	e�ZGd d!�d!e�ZGd"d
�d
e�ZGd#d�de�ZGd$d�de�ZGd%d
�d
e�Z Gd&d'�d'�Z!Gd(d)�d)e!�Z"d<d+d,�Z#d-d.�Z$d/d0�Z%d1d2�Z&d3d4�Z'd5d6�Z(Gd7d�de)�Z*Gd8d�de*�Z+Gd9d�de*�Z,Gd:d�de*�Z-Gd;d�de*�Z.dS)=�N�Mailbox�Maildir�mbox�MH�Babyl�MMDF�Message�MaildirMessage�mboxMessage�	MHMessage�BabylMessage�MMDFMessage�Error�NoSuchMailboxError�
NotEmptyError�ExternalClashError�FormatError�asciic@seZdZdBdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�ZdCdd�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd �Zd!d"�Zd#d$�Zd%d&�Zd'd(�Zd)d*�Zd+d,�Zd-d.�ZdDd/d0�Zd1d2�ZdEd3d4�Zd5d6�Zd7d8�Zd9d:�Zd;d<�Zd=d>�Z d?Z!dFd@dA�Z"dS)GrNTcCs tj�tj�|��|_||_dS)N)�os�path�abspath�
expanduser�_path�_factory)�selfr�factory�create�r�,/opt/alt/python37/lib64/python3.7/mailbox.py�__init__$szMailbox.__init__cCstd��dS)Nz&Method must be implemented by subclass)�NotImplementedError)r�messagerrr�add)szMailbox.addcCstd��dS)Nz&Method must be implemented by subclass)r )r�keyrrr�remove-szMailbox.removecCs|�|�dS)N)r$)rr#rrr�__delitem__1szMailbox.__delitem__cCs(y|�|�Wntk
r"YnXdS)N)r$�KeyError)rr#rrr�discard4szMailbox.discardcCstd��dS)Nz&Method must be implemented by subclass)r )rr#r!rrr�__setitem__;szMailbox.__setitem__cCs$y
|�|�Stk
r|SXdS)N)�__getitem__r&)rr#�defaultrrr�get?s
zMailbox.getc	Cs6|js|�|�St�|�|���}|�|�SQRXdS)N)r�get_message�
contextlib�closing�get_file)rr#�filerrrr)Fs
zMailbox.__getitem__cCstd��dS)Nz&Method must be implemented by subclass)r )rr#rrrr,NszMailbox.get_messagecCst�|�|����S)N)�email�message_from_bytes�	get_bytes�	as_string)rr#rrr�
get_stringRszMailbox.get_stringcCstd��dS)Nz&Method must be implemented by subclass)r )rr#rrrr3YszMailbox.get_bytescCstd��dS)Nz&Method must be implemented by subclass)r )rr#rrrr/]szMailbox.get_filecCstd��dS)Nz&Method must be implemented by subclass)r )rrrr�iterkeysaszMailbox.iterkeyscCst|���S)N)�listr6)rrrr�keyseszMailbox.keysc	cs@x:|��D].}y||}Wntk
r0w
YnX|Vq
WdS)N)r6r&)rr#�valuerrr�
itervaluesiszMailbox.itervaluescCs|��S)N)r:)rrrr�__iter__rszMailbox.__iter__cCst|���S)N)r7r:)rrrr�valuesuszMailbox.valuesc	csDx>|��D]2}y||}Wntk
r0w
YnX||fVq
WdS)N)r6r&)rr#r9rrr�	iteritemsyszMailbox.iteritemscCst|���S)N)r7r=)rrrr�items�sz
Mailbox.itemscCstd��dS)Nz&Method must be implemented by subclass)r )rr#rrr�__contains__�szMailbox.__contains__cCstd��dS)Nz&Method must be implemented by subclass)r )rrrr�__len__�szMailbox.__len__cCs x|��D]}|�|�q
WdS)N)r8r')rr#rrr�clear�sz
Mailbox.clearcCs0y||}Wntk
r |SX|�|�|S)N)r&r')rr#r*�resultrrr�pop�s
zMailbox.popcCs*x$|��D]}||�|�fSWtd��dS)NzNo messages in mailbox)r6rCr&)rr#rrr�popitem�szMailbox.popitemc	Csxt|d�r|��}nt|d�r(|��}n|}d}x6|D].\}}y|||<Wq6tk
rbd}Yq6Xq6W|rttd��dS)Nr=r>FTzNo message with key(s))�hasattrr=r>r&)r�arg�sourceZbad_keyr#r!rrr�update�s



zMailbox.updatecCstd��dS)Nz&Method must be implemented by subclass)r )rrrr�flush�sz
Mailbox.flushcCstd��dS)Nz&Method must be implemented by subclass)r )rrrr�lock�szMailbox.lockcCstd��dS)Nz&Method must be implemented by subclass)r )rrrr�unlock�szMailbox.unlockcCstd��dS)Nz&Method must be implemented by subclass)r )rrrr�close�sz
Mailbox.closecCs,y
|�d�Stk
r&td��YnXdS)Nrz?String input must be ASCII-only; use bytes or a Message instead)�encode�UnicodeError�
ValueError)rr!rrr�_string_to_bytes�s
zMailbox._string_to_bytesFc	Cs�t|tjj�rvt��}tj�||d�}|�|�|�	d�|�
�}|�dt�}|�
|�|jrr|�t�sr|�
t��n�t|tttjf��rt|tj�r�t�dtd�|��}t|t�r�|�|�}|r�|�dd�}|�dt�}|�
|�|j�r�|�t��s�|�
t�n�t|d��r�t|d��r2t�d	td�|j}d}x�|��}|�d
��r^|dd�d}n|�d��rz|dd
�d}|�s�P|�r�|�d��r�d|dd�}|�dt�}|�
|�|}�q8W|j�r�|�r�|�t��s�|�
t�ntdt|���dS)Nr�
z8Use of StringIO input is deprecated, use BytesIO instead�s
From s
>From �read�bufferzDUse of text mode files is deprecated, use a binary mode file insteads
����
���sFrom s>From �zInvalid message type: %s)�
isinstancer1r!r�io�BytesIO�	generator�BytesGenerator�flatten�seekrS�replace�linesep�write�_append_newline�endswith�str�bytes�StringIO�warnings�warn�DeprecationWarning�getvaluerPrErT�readline�
startswith�	TypeError�type)	rr!�targetZmangle_from_rT�gen�dataZlastline�linerrr�
_dump_message�sZ







zMailbox._dump_message)NT)N)N)N)F)#�__name__�
__module__�__qualname__rr"r$r%r'r(r+r)r,r5r3r/r6r8r:r;r<r=r>r?r@rArCrDrHrIrJrKrLrPrcrtrrrrr!s@

		
	
c@s�eZdZdZd5dd�Zdd�Zdd	�Zd
d�Zdd
�Zdd�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zd d!�Zd"d#�Zd$d%�Zd&d'�Zd(d)�Zd*d+�Zd,Zd-d.�Zd/d0�Zd1d2�Zd3d4�ZdS)6r�:NTcCs�t�||||�tj�|jd�tj�|jd�tj�|jd�d�|_tj�|j�s�|r�t�|jd�x*|j�	�D]}t�|d�qnWn
t
|j��i|_ddd�|_d|_
d|_dS)	N�tmp�new�cur)ryrzr{i�r)r{rzg�������?)rrrr�joinr�_paths�exists�mkdirr<r�_toc�_toc_mtimes�
_last_read�_skewfactor)r�dirnamerrrrrrr
s
zMaildir.__init__c
Cs~|��}y|�||�Wn*tk
rB|��t�|j��YnXt|�t|t	�r||�
�}|j|��}||jkr�d}nd}d}tj
�|j��|j�d}tj
�|j|||�}t|t	�r�t�|jtj
�|j�|��f�yLyt�|j|�Wn(ttfk
�rt�|j|�YnXt�|j�WnNtk
�rx}z.t�|j�|jtjk�rftd|��n�Wdd}~XYnX|S)N�rzrz$Name clash with existing message: %s)�_create_tmprt�
BaseExceptionrLrr$�name�_sync_closerYr	�
get_subdir�colon�get_infor�basename�splitr|r�utime�getatime�get_date�link�AttributeError�PermissionError�rename�OSError�errnoZEEXISTr)rr!Ztmp_file�subdir�suffix�uniq�dest�errrr"!sB



zMaildir.addcCs t�tj�|j|�|���dS)N)rr$rr|r�_lookup)rr#rrrr$KszMaildir.removec	Cs,y|�|�Wnttfk
r&YnXdS)N)r$r&�FileNotFoundError)rr#rrrr'OszMaildir.discardcCs�|�|�}|�|�}|�|�}t|t�r.|}n|}tj�|�}|j|kr`|j|�|j�d}nd}|�	|�tj�
|j|�}	tj�
|j|||�}
t|t�r�t�|	tj�
|	�|��f�t�|	|
�dS)NrWr�)r�r"rYr	rrr�r�r�r'r|rr�r�r�r�)rr#r!Zold_subpathZtemp_keyZtemp_subpathZdominant_subpathr�r�Ztmp_path�new_pathrrrr(Ws"






zMaildir.__setitem__c	Cs�|�|�}ttj�|j|�d�� }|jr4|�|�}nt|�}WdQRXtj�|�\}}|�	|�|j
|kr�|�|�|j
�d�|�tj�
tj�|j|���|S)N�rbrW)r��openrrr|rrr	r��
set_subdirr��set_info�set_date�getmtime)rr#Zsubpath�f�msgr�r�rrrr,rs


zMaildir.get_messagec	Cs8ttj�|j|�|��d��}|���td�SQRXdS)Nr�rQ)	r�rrr|rr�rSr`ra)rr#r�rrrr3�szMaildir.get_bytescCs$ttj�|j|�|��d�}t|�S)Nr�)r�rrr|rr��
_ProxyFile)rr#r�rrrr/�szMaildir.get_filec	csH|��x:|jD]0}y|�|�Wntk
r8wYnX|VqWdS)N)�_refreshr�r�r&)rr#rrrr6�szMaildir.iterkeyscCs|��||jkS)N)r�r�)rr#rrrr?�szMaildir.__contains__cCs|��t|j�S)N)r��lenr�)rrrrr@�szMaildir.__len__cCsdS)Nr)rrrrrI�sz
Maildir.flushcCsdS)Nr)rrrrrJ�szMaildir.lockcCsdS)Nr)rrrrrK�szMaildir.unlockcCsdS)Nr)rrrrrL�sz
Maildir.closecCs`g}xVt�|j�D]F}t|�dkr|ddkrtj�tj�|j|��r|�|dd��qW|S)N�r�.)r�listdirrr�r�isdirr|�append)rrB�entryrrr�list_folders�szMaildir.list_folderscCs ttj�|jd|�|jdd�S)Nr�F)rr)rrrr|rr)r�folderrrr�
get_folder�szMaildir.get_foldercCs\tj�|jd|�}t||jd�}tj�|d�}tj�|�sXt�t�|tj	tj
Bd��|S)Nr�)rZ
maildirfolderi�)rrr|rrrr~rLr��O_CREAT�O_WRONLY)rr�rrBZmaildirfolder_pathrrr�
add_folder�szMaildir.add_foldercCs,tj�|jd|�}xTt�tj�|d��t�tj�|d��D](}t|�dksZ|ddkr>td|��q>WxPt�|�D]B}|dkrv|dkrv|dkrvtj�tj�||��rvtd||f��qvWx`tj|d	d
�D]N\}}}x |D]}t�	tj�||��q�Wx |D]}t�
tj�||��q�Wq�Wt�
|�dS)Nr�rzr{r�rzFolder contains message(s): %sryz%Folder contains subdirectory '%s': %sF)�topdown)rrr|rr�r�rr��walkr$�rmdir)rr�rr��root�dirs�filesrrr�
remove_folder�s 

zMaildir.remove_foldercCs\t��}xNt�tj�|jd��D]4}tj�|jd|�}|tj�|�dkr t�|�q WdS)Nryi@�)�timerr�rr|rr�r$)r�nowr�rrrr�clean�s
z
Maildir.cleanr�cCs�t��}t��}d|kr$|�dd�}d|kr8|�dd�}dt|�t|dd�t��tj|f}tj	�
|jd|�}yt�|�Wn@t
k
r�tjd7_yt|�Stk
r�YnXYnXtd	|��dS)
N�/z\057rxz\072z%s.M%sP%sQ%s.%sr�g��.Aryz&Name clash prevented file creation: %s)r��socket�gethostnamer`�intr�getpidr�_countrr|r�statr��_create_carefully�FileExistsErrorr)rr�Zhostnamer�rrrrr��s&zMaildir._create_tmpcCs�t��|jd|jkrbd}x<|jD]2}tj�|j|�}||j|krLd}||j|<q$W|sbdSi|_xl|jD]b}|j|}xRt�	|�D]D}tj�
||�}tj�|�r�q�|�|j
�d}tj�
||�|j|<q�WqpWt��|_dS)N�FTr)r�r�r�r�rrr�r}r�r�r|r�r�r�)rZrefreshr��mtimerr��pr�rrrr��s&
zMaildir._refreshcCs|y,tj�tj�|j|j|��r*|j|SWntk
r@YnX|��y
|j|Stk
rvtd|�d�YnXdS)NzNo message with key: %s)rrr~r|rr�r&r�)rr#rrrr�#s
zMaildir._lookupcCsVt|d�s|��|_x<y|t|j�Stk
r8dStk
rLwYqXqWdS)N�
_onetime_keys)rEr6r��next�
StopIterationr&)rrrrr�1s

zMaildir.next)NT)rurvrwr�rr"r$r'r(r,r3r/r6r?r@rIrJrKrLr�r�r�r�r�r�r�r�r�r�rrrrrs4
*
	
$c@s�eZdZd#dd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Zdd�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zd$dd �Zd!d"�ZdS)%�_singlefileMailboxNTc
Cs�t�||||�yt|jd�}Wnntk
r�}zP|jtjkr\|rPt|jd�}q~t|j��n"|jtjtj	fkr|t|jd�}n�Wdd}~XYnX||_
d|_d|_d|_
d|_d|_d|_dS)Nzrb+zwb+r�rF)rrr�rr�r��ENOENTr�EACCES�EROFS�_filer��	_next_key�_pending�
_pending_sync�_locked�_file_length)rrrrr�r�rrrrAs$z_singlefileMailbox.__init__cCs8|��|�|�|j|j<|jd7_d|_|jdS)Nr�T)r��_append_messager�r�r�)rr!rrrr"Xs
z_singlefileMailbox.addcCs|�|�|j|=d|_dS)NT)r�r�r�)rr#rrrr$bs
z_singlefileMailbox.removecCs$|�|�|�|�|j|<d|_dS)NT)r�r�r�r�)rr#r!rrrr(hs
z_singlefileMailbox.__setitem__ccs|��|j��EdHdS)N)r�r�r8)rrrrr6nsz_singlefileMailbox.iterkeyscCs|��||jkS)N)r�r�)rr#rrrr?ssz_singlefileMailbox.__contains__cCs|��t|j�S)N)r�r�r�)rrrrr@xsz_singlefileMailbox.__len__cCs|jst|j�d|_dS)NT)r��
_lock_filer�)rrrrrJ}s
z_singlefileMailbox.lockcCs|jrt|j�d|_dS)NF)r��_unlock_filer�)rrrrrK�s
z_singlefileMailbox.unlockc
Cs�|js |jrt|j�d|_dS|j�dd�|j��}||jkrTtd|j|f��t|j	�}y�i}|�
|�x�t|j�
��D]|}|j|\}}|j�|�|�|�|��}x0|j�td||j����}|s�P|�|�q�W||��f||<|�|�q~W|��|_Wn"|��t�|j��YnXt|�|j��t�|j	�j}	t�|j|	�yt�|j|j	�Wn2tk
�r�t�|j	�t�|j|j	�YnXt|j	d�|_||_d|_d|_|j�r�t|jdd�dS)NFrr�z4Size of mailbox file changed (expected %i, found %i)izrb+)�dotlock) r�r��_sync_flushr�r_�tellr�r�_create_temporaryr�_pre_mailbox_hook�sortedr�r8�_pre_message_hookrS�minrb�_post_message_hookrLrr$r�r�r��st_mode�chmodr�r�r�r�r�)
rZcur_lenZnew_fileZnew_tocr#�start�stopZ	new_startrT�moderrrrI�s^
	






z_singlefileMailbox.flushcCsdS)Nr)rr�rrrr��sz$_singlefileMailbox._pre_mailbox_hookcCsdS)Nr)rr�rrrr��sz$_singlefileMailbox._pre_message_hookcCsdS)Nr)rr�rrrr��sz%_singlefileMailbox._post_message_hookcCs4z|��Wdz|jr|��Wd|j��XXdS)N)rIr�rKr�rL)rrrrrL�sz_singlefileMailbox.closecCsL|jdkr|��|dk	rHy
|j|Stk
rFtd|�d�YnXdS)NzNo message with key: %s)r��
_generate_tocr&)rr#rrrr��s

z_singlefileMailbox._lookupcCs�|j�dd�|j��}t|j�dkr8|js8|�|j�y&|�|j�|�|�}|�	|j�Wn"t
k
r�|j�|��YnX|j��|j��|_
|S)Nrr�)r�r_r�r�r�r�r�r��_install_messager�r��truncaterIr�)rr!ZbeforeZoffsetsrrrr��s


z"_singlefileMailbox._append_message)NT)N)rurvrwrr"r$r(r6r?r@rJrKrIr�r�r�rLr�r�rrrrr�>s 

@

r�c@s>eZdZdZdd�Zddd�Zddd�Zdd	d
�Zdd�Zd
S)�	_mboxMMDFTcCsp|�|�\}}|j�|�|j���td�}|j�||j���}|�|�td��}|�	|dd��
d��|S)N�rQrXr)r�r�r_rlr`rarSr��_message_factory�set_from�decode)rr#r�r��	from_line�stringr�rrrr,sz_mboxMMDF.get_messageFcCst�|�|��j|d�S)N)�unixfrom)r1r2r3r4)rr#�from_rrrr5sz_mboxMMDF.get_stringcCsJ|�|�\}}|j�|�|s(|j��|j�||j���}|�td�S)NrQ)r�r�r_rlrSr�r`ra)rr#r�r�r�r�rrrr3s
z_mboxMMDF.get_bytescCs<|�|�\}}|j�|�|s(|j��t|j|j��|�S)N)r�r�r_rl�_PartialFiler�)rr#r�r�r�rrrr/s

z_mboxMMDF.get_filecCsd}t|t�r|�|�}t|t�rf|�d�rf|�d�}|dkr\|d|�}||dd�}q�|}d}nJt|t�r�|���d�}d|}n(t|t	j
j�r�|��}|dk	r�|�d�}|dkr�dt
�t
�����}|j��}|j�|t�|�||j|j�|j��}||fS)NsFrom rQrWr�r�rsFrom MAILER-DAEMON )rYrerPrfrm�find�_mboxMMDFMessage�get_fromrMr1r!r�get_unixfromr��asctime�gmtimer�r�rbrart�
_mangle_from_)rr!r��newlineZauthorr�r�rrrr�&s0







z_mboxMMDF._install_messageN)F)F)F)	rurvrwr�r,r5r3r/r�rrrrr�s


	
r�c@s.eZdZdZdZd	dd�Zdd�Zdd�ZdS)
rTNcCst|_t�||||�dS)N)r
r�r�r)rrrrrrrrLsz
mbox.__init__cCs|�t�dS)N)rbra)rr�rrrr�Qszmbox._post_message_hookcCs�gg}}d}|j�d�x�|j��}|j��}|�d�r|t|�t|�krl|rb|�|tt��n
|�|�|�|�d}q|s�|r�|�|tt��n
|�|�Pq|tkr�d}qd}qWtt	t
||���|_t|j�|_|j��|_
dS)NFrsFrom T)r�r_r�rlrmr�r�ra�dict�	enumerate�zipr�r�r�)r�starts�stopsZlast_was_empty�line_posrsrrrr�Us0






zmbox._generate_toc)NT)rurvrwr�rcrr�r�rrrrrCs

c@s.eZdZddd�Zdd�Zdd�Zd	d
�ZdS)rNTcCst|_t�||||�dS)N)r
r�r�r)rrrrrrrrzsz
MMDF.__init__cCs|�dt�dS)Ns)rbra)rr�rrrr�szMMDF._pre_message_hookcCs|�tdt�dS)Ns)rbra)rr�rrrr��szMMDF._post_message_hookcCs�gg}}|j�d�d}x�|}|j��}|j��}|�dt�r�|�|�xV|}|j��}|j��}|dtkr�|�|tt��PqN|sN|�|�PqNWq|sPqWtt	t
||���|_t|j�|_|j�dd�|j��|_
dS)Nrsr�)r�r_rlr�rmrar�r�rrrr�r�r�)rrr�next_posrrsrrrr��s2






zMMDF._generate_toc)NT)rurvrwrr�r�r�rrrrrws
c@s�eZdZd/dd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Zdd�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd �Zd!d"�Zd#d$�Zd%d&�Zd'd(�Zd)d*�Zd+d,�Zd-d.�ZdS)0rNTcCstt�||||�tj�|j�sj|r`t�|jd�t�t�tj�	|jd�tj
tjBtjBd��n
t
|j��d|_dS)Ni�z
.mh_sequencesi�F)rrrrr~rrrLr�r|r��O_EXCLr�rr�)rrrrrrrr�s
zMH.__init__cCs�|��}t|�dkrd}nt|�d}tj�|jt|��}t|�}d}z�|j	rVt
|�zfy|�||�Wn:tk
r�|j	r�t
|�t|�d}t�|��YnXt|t�r�|�||�Wd|j	r�t
|�XWd|s�t|�X|S)Nrr�FT)r8r��maxrrr|rrer�r�r�rtr�r�r�r$rYr�_dump_sequences)rr!r8Znew_keyr�r��closedrrrr"�s6


zMH.addc
Csxtj�|jt|��}yt|d�}Wn>tk
r`}z |jtjkrNt	d|��n�Wdd}~XYnX|�
�t�|�dS)Nzrb+zNo message with key: %s)rrr|rrer�r�r�r�r&rLr$)rr#rr�r�rrrr$�sz	MH.removec
Cs�tj�|jt|��}yt|d�}Wn>tk
r`}z |jtjkrNt	d|��n�Wdd}~XYnXzd|j
rrt|�z@t�t�|tj
tjB��|�||�t|t�r�|�||�Wd|j
r�t|�XWdt|�XdS)Nzrb+zNo message with key: %s)rrr|rrer�r�r�r�r&r�r�rLr��O_TRUNCrtrYrr	r�r�)rr#r!rr�r�rrrr(�s$
zMH.__setitem__c
Cs�y@|jr$ttj�|jt|��d�}nttj�|jt|��d�}Wn>tk
r~}z |jtj	krlt
d|��n�Wdd}~XYnX|�2|jr�t|�zt|�}Wd|jr�t
|�XWdQRXx*|����D]\}}||kr�|�|�q�W|S)Nzrb+r�zNo message with key: %s)r�r�rrr|rrer�r�r�r&r�rr��
get_sequencesr>�add_sequence)rr#r�r�r�r��key_listrrrr,�s&zMH.get_messagec
Cs�y@|jr$ttj�|jt|��d�}nttj�|jt|��d�}Wn>tk
r~}z |jtj	krlt
d|��n�Wdd}~XYnX|�6|jr�t|�z|���
td�S|jr�t|�XWdQRXdS)Nzrb+r�zNo message with key: %srQ)r�r�rrr|rrer�r�r�r&r�rSr`rar�)rr#r�r�rrrr3szMH.get_bytesc
Csfyttj�|jt|��d�}Wn>tk
r\}z |jtjkrJt	d|��n�Wdd}~XYnXt
|�S)Nr�zNo message with key: %s)r�rrr|rrer�r�r�r&r�)rr#r�r�rrrr/)szMH.get_filecCsttdd�t�|j�D���S)Ncss|]}|��rt|�VqdS)N)�isdigitr�)�.0r�rrr�	<genexpr>6szMH.iterkeys.<locals>.<genexpr>)�iterr�rr�r)rrrrr64szMH.iterkeyscCstj�tj�|jt|���S)N)rrr~r|rre)rr#rrrr?9szMH.__contains__cCstt|����S)N)r�r7r6)rrrrr@=sz
MH.__len__cCs2|js.ttj�|jd�d�|_t|j�d|_dS)Nz
.mh_sequenceszrb+T)r�r�rrr|rr�r�)rrrrrJAs
zMH.lockcCs(|jr$t|j�t|j�|`d|_dS)NF)r�r�r�r�)rrrrrKHs


z	MH.unlockcCsdS)Nr)rrrrrIPszMH.flushcCs|jr|��dS)N)r�rK)rrrrrLTszMH.closecCs@g}x6t�|j�D]&}tj�tj�|j|��r|�|�qW|S)N)rr�rrr�r|r�)rrBr�rrrr�Ys
zMH.list_folderscCsttj�|j|�|jdd�S)NF)rr)rrrr|rr)rr�rrrr�asz
MH.get_foldercCsttj�|j|�|jd�S)N)r)rrrr|rr)rr�rrrr�fsz
MH.add_foldercCs`tj�|j|�}t�|�}|dgkr:t�tj�|d��n|gkrDntd|j��t�|�dS)Nz
.mh_sequenceszFolder not empty: %s)rrr|rr�r$rr�)rr�r�entriesrrrr�ks

zMH.remove_folderc

si}ttj�|jd�ddd���}t|����x�|D]�}y�|�d�\}}t�}xT|��D]H}|��rr|�	t
|��qVdd�|�d�D�\}}	|�t||	d	��qVW�fd
d�t
|�D�||<t||�dkr�||=Wq2tk
r�td
|����Yq2Xq2WWdQRX|S)Nz
.mh_sequences�r�ASCII)�encodingrxcss|]}t|�VqdS)N)r�)r�xrrrr�sz#MH.get_sequences.<locals>.<genexpr>�-r�csg|]}|�kr|�qSrr)rr#)�all_keysrr�
<listcomp>�sz$MH.get_sequences.<locals>.<listcomp>rz"Invalid sequence specification: %s)r�rrr|r�setr8r�rr"r�rH�ranger�r�rOr�rstrip)
r�resultsr�rsr��contentsr8�specr�r�r)rrrws&

 zMH.get_sequencescCs
ttj�|jd�ddd�}z�t�t�|jtjtjB��x�|�	�D]�\}}t
|�dkrXqB|�|d�d}d}xbtt
|��D]R}|d|kr�|s�d	}|�d
�n*|r�d}|�d||f�n|�d|�|}q|W|r�|�t|�d
�qB|�d
�qBWWdt|�XdS)Nz
.mh_sequenceszr+r)rrrxFr�Trz%s %sz %s�
)r�rrr|rrLr�r�rr>r�rbr�rrer�)r�	sequencesr�r�r8�prevZ
completingr#rrr�
set_sequences�s.zMH.set_sequencesc	
CsL|��}d}g}x�|��D]�}|d|kr�|�||df�y4t�tj�|jt|��tj�|jt|d���WnHt	t
fk
r�t�tj�|jt|��tj�|jt|d���YnXt�tj�|jt|���|d7}qW|d|_
t|�dkr�dSxB|��D]6\}}x*|D]"\}}||k�r|||�|�<�qW�qW|�|�dS)Nrr�)rr6r�rr�rr|rrer�r�r��unlinkr�r�r>�indexr$)	rr"r#Zchangesr#r�r�oldrzrrr�pack�s, 

zMH.packcCs||��}|��}x<|��D]0\}}||kr6|�|�q||kr||�|�=qWx|D]}||krT|g||<qTW|�|�dS)N)rr>r�r&r$)rr!r#Zpending_sequencesZ
all_sequencesr�r�sequencerrrr	�s
zMH._dump_sequences)NT)rurvrwrr"r$r(r,r3r/r6r?r@rJrKrIrLr�r�r�r�rr$r(r	rrrrr�s,
"c@s�eZdZedddddddh�Zd$d
d�Zdd
�Zdd�Zdd�Zdd�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zd d!�Zd"d#�ZdS)%r�unseen�deletedZfiled�answered�	forwardedZedited�resentNTcCst�||||�i|_dS)N)r�r�_labels)rrrrrrrr�szBabyl.__init__cCs(t�||�}t|t�r$|��|j|<|S)N)r�r"rYr�
get_labelsr/)rr!r#rrrr"�s
z	Babyl.addcCs"t�||�||jkr|j|=dS)N)r�r$r/)rr#rrrr$�s
zBabyl.removecCs*t�|||�t|t�r&|��|j|<dS)N)r�r(rYrr0r/)rr#r!rrrr(�s
zBabyl.__setitem__c
Cs�|�|�\}}|j�|�|j��t��}x2|j��}|dtksH|sJP|�|�td��q.Wt��}x.|j��}|tks�|s�P|�|�td��qjW||j�	�}|j�
|�}|�td�}t|��|�}	|	�
|���||jkr�|	�|j|�|	S)Ns*** EOOH ***rQ)r�r�r_rlrZr[rarbr`r�rSrrk�set_visibler/�
set_labels)
rr#r�r��original_headersrsZvisible_headers�nZbodyr�rrrr,�s.



zBabyl.get_messagec	Cs�|�|�\}}|j�|�|j��t��}x2|j��}|dtksH|sJP|�|�td��q.Wx|j��}|tksx|sbPqbW|�	�}||j�
�}|j�|�}|�td�}||S)Ns*** EOOH ***rQ)r�r�r_rlrZr[rarbr`rkr�rS)	rr#r�r�r3rsZheadersr4rrrrrr3s$


zBabyl.get_bytescCst�|�|��dt��S)NrQ)rZr[r3r`ra)rr#rrrr/%szBabyl.get_filecCs@|��t�}x|j��D]}|�|�qW|�|j�t|�S)N)r�rr/r<rH�difference_update�_special_labelsr7)r�labelsZ
label_listrrrr0)szBabyl.get_labelscCs>gg}}|j�d�d}g}x�|}|j��}|j��}|dtkr�t|�t|�krf|�|tt��|�|�dd�|j��dd��d�D�}|�|�q |dks�|dtkr�t|�t|�kr�|�|tt��q |s |�|tt��Pq Wtt	t
||���|_tt	|��|_t|j�|_
|j�dd�|j��|_dS)	NrscSsg|]}|��r|���qSr)�strip)r�labelrrrr@sz'Babyl._generate_toc.<locals>.<listcomp>r��,�r�)r�r_rlr�rar�r�r�rrrr�r/r�r�)rrrrZlabel_listsrrsr7rrrr�2s4



zBabyl._generate_toccCsVdt}|dt7}|��}dd�|D�}|dd�|�t7}|d7}|�|�dS)NsBABYL OPTIONS:s
Version: 5css|]}|��VqdS)N)rM)rr9rrrrUsz*Babyl._pre_mailbox_hook.<locals>.<genexpr>sLabels:r:r;)rar0r|rb)rr�Zbabylr7rrrr�PszBabyl._pre_mailbox_hookcCs|�dt�dS)N�)rbra)rr�rrrr�ZszBabyl._pre_message_hookcCs|�td�dS)Nr;)rbra)rr�rrrr�^szBabyl._post_message_hookcCs�|j��}t|t�r�g}g}x0|��D]$}||jkr@|�|�q&|�|�q&W|j�d�x |D]}|j�d|���q`W|j�d�x$|D]}|j�d|��d�q�W|j�t	�n|j�dt	�t|t
jj��r*t
��}t
j�|dd�}|�|�|�d�x4|��}|j�|�d	t	��|d	k�s6|�s
P�q
W|j�d
t	�t|t��r�t
��}	t
j�|	dd�}
|
�|���xv|	��}|j�|�d	t	��|d	k�s�|�s�P�q�Wn@|�d�x4|��}|j�|�d	t	��|d	k�s�|�s�P�q�Wx,|�d�}|�sP|j�|�d	t	���q�W�nXt|ttt
jf��r&t|t
j��rbt�dtd
�|��}t|t��rx|�|�}|�d�d}|ddk�r�|j�|d|��d	t	��|j�d
t	�|j�|d|��d	t	��|j�||d��d	t	��n(|j�d
t	t	�|j�|�d	t	���n\t |d��rrt |d��rRt�dtd
�|j!}|��}
d}x�|��}|�"d��r�|dd�d	}n|�"d��r�|dd�d	}|j�|�d	t	��|d	k�s�|�s`|�r�d}|j�d
t	�|�|
�nP�q`Wx�|��}|�sP|�"d��r$|dd�t	}n:|�"d��rB|dd�t	}n|�"d	��r^|dd�t	}|j�|��q�Wnt#dt$|���|j��}||fS)N�1s, s,,� r:s1,,FrrQs*** EOOH ***iz8Use of StringIO input is deprecated, use BytesIO insteadrRs

r�rWrlrTzDUse of text mode files is deprecated, use a binary mode file insteadTs
rUrVzInvalid message type: %s)%r�r�rYrr0r6r�rbrMrar1r!rrZr[r\r]r^r_rlr`�get_visiblerSrfrergrhrirjrkrPr�rErTrdrnro)rr!r�Zspecial_labelsr7r9Zorig_bufferZorig_generatorrsZ
vis_bufferZ
vis_generatorrTZ
body_startZoriginal_posZ
first_passr�rrrr�bs�











zBabyl._install_message)NT)rurvrw�	frozensetr6rr"r$r(r,r3r/r0r�r�r�r�r�rrrrr�s

	
c@s&eZdZddd�Zdd�Zdd�ZdS)	rNcCs�t|tjj�r4|�t�|��t|t�r�|�|�n�t|t�rP|�t�	|��n~t|t
�rl|�t�|��nbt|tj
�r�|�t�|��nDt|d�r�|�t�|��n(|dkr�tjj�|�ntdt|���dS)NrSzInvalid message type: %s)rYr1r!r�_become_message�copyZdeepcopy�_explain_torfr2reZmessage_from_stringrZ�
TextIOWrapperZmessage_from_filerEZmessage_from_binary_filerrnro)rr!rrrr�s



zMessage.__init__cCs8t|dg�}x&|jD]}||kr|j||j|<qWdS)N�_type_specific_attributes)�getattr�__dict__)rr!Z
type_specificr�rrrrA�szMessage._become_messagecCst|t�rdStd��dS)Nz Cannot convert to specified type)rYrrn)rr!rrrrC�s
zMessage._explain_to)N)rurvrwrrArCrrrrr�s
c@sxeZdZdddgZddd�Zdd�Zd	d
�Zdd�Zd
d�Zdd�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�ZdS)r	�_subdir�_info�_dateNcCs&d|_d|_t��|_t�||�dS)Nrzr�)rHrIr�rJrr)rr!rrrr�s
zMaildirMessage.__init__cCs|jS)N)rH)rrrrr��szMaildirMessage.get_subdircCs(|dks|dkr||_ntd|��dS)Nrzr{z!subdir must be 'new' or 'cur': %s)rHrO)rr�rrrr�szMaildirMessage.set_subdircCs"|j�d�r|jdd�SdSdS)Nz2,r�r�)rIrm)rrrr�	get_flags
szMaildirMessage.get_flagscCsdd�t|��|_dS)Nz2,r�)r|r�rI)r�flagsrrr�	set_flagsszMaildirMessage.set_flagscCs$|�d�t|���t|�B��dS)Nr�)rMr|rrK)r�flagrrr�add_flagszMaildirMessage.add_flagcCs,|��r(|�d�t|���t|���dS)Nr�)rKrMr|r)rrNrrr�remove_flagszMaildirMessage.remove_flagcCs|jS)N)rJ)rrrrr�szMaildirMessage.get_datecCs6yt|�|_Wn"tk
r0td|�d�YnXdS)Nzcan't convert to float: %s)�floatrJrOrn)rZdaterrrr�"szMaildirMessage.set_datecCs|jS)N)rI)rrrrr�)szMaildirMessage.get_infocCs&t|t�r||_ntdt|���dS)Nzinfo must be a string: %s)rYrerIrnro)r�inforrrr�-s
zMaildirMessage.set_infocCs�t|t�r8|�|���|�|���|�|����nht|t�r�t	|���}d|kr`|�
d�|��dkrv|�
d�d|kr�|�
d�d|kr�|�
d�d|kr�|�
d�|�d	t�
|����n�t|t��rt	|���}d|kr�|�d
�d|k�r|�d�d|k�r�|�d�n�t|t��r�t	|���}d|k�rD|�d
�d|k�rX|�d
�d|k�rl|�d�d|k�r�|�d�nt|t��r�ntdt|���dS)N�S�Rr{�O�T�D�F�Az
MAILER-DAEMONr*�replied�flaggedr+r,�Pr-z$Cannot convert to specified type: %s)rYr	rMrKr�r�r�r�r�rrOr�r�r�rr
r�	add_labelrrnro)rr!rLrrrrC4sN

















zMaildirMessage._explain_to)N)rurvrwrErr�r�rKrMrOrPr�r�r�r�rCrrrrr	�s

c@sVeZdZdgZddd�Zdd�Zddd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�ZdS)r��_fromNcCsV|�dd�t|tjj�rF|��}|dk	rF|�d�rF|�|dd��t�||�dS)Nz
MAILER-DAEMONTzFrom rX)r�rYr1r!rr�rmr)rr!r�rrrresz_mboxMMDFMessage.__init__cCs|jS)N)r^)rrrrr�nsz_mboxMMDFMessage.get_fromcCs4|dk	r*|dkrt��}|dt�|�7}||_dS)NT� )r�r�r�r^)rr�Ztime_rrrr�rs
z_mboxMMDFMessage.set_fromcCs|�dd�|�dd�S)N�Statusr�zX-Status)r+)rrrrrKzsz_mboxMMDFMessage.get_flagscCs�t|�}d\}}x&dD]}||kr||7}|�|�qWx&dD]}||kr>||7}|�|�q>W|d�t|��7}y|�d|�Wn tk
r�|�d|�YnXy|�d|�Wn tk
r�|�d|�YnXdS)N)r�r�)rTrU)rWrXrYr�r`zX-Status)rr$r|r��replace_headerr&Z
add_header)rrLZstatus_flagsZ
xstatus_flagsrNrrrrM~s&

z_mboxMMDFMessage.set_flagscCs$|�d�t|���t|�B��dS)Nr�)rMr|rrK)rrNrrrrO�sz_mboxMMDFMessage.add_flagcCs4d|ksd|kr0|�d�t|���t|���dS)Nr`zX-Statusr�)rMr|rrK)rrNrrrrP�sz_mboxMMDFMessage.remove_flagc	Cs�t|t�r�t|���}d|kr(|�d�d|kr:|�d�d|krL|�d�d|kr^|�d�d|krp|�d�|d	=|d
=d�|����dd��}y|�	t
�t�
|d
���Wnttfk
r�YnX�n
t|t�r�|�|���|�|���n�t|t��rZt|���}d|k�r$|�d�d|k�r8|�d�d|k�rL|�d�|d	=|d
=n�t|t��r�t|���}d|k�r�|�d�d|k�r�|�d�d|k�r�|�d�|d	=|d
=nt|t��r�ntdt|���dS)NrUr{rXrYrTrSrWrV�statuszx-statusr_���z%a %b %d %H:%M:%S %Yr*rZr[r+r,z$Cannot convert to specified type: %s)rYr	rrKr�rOr|r�r�r��calendarZtimegmr�ZstrptimerO�
OverflowErrorr�rMr�rr
rr]rrnro)rr!rLZ
maybe_daterrrrC�s^



















z_mboxMMDFMessage._explain_to)N)N)rurvrwrErr�r�rKrMrOrPrCrrrrr�`s
	
r�c@seZdZdS)r
N)rurvrwrrrrr
�sc@sDeZdZdgZddd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dS)r�
_sequencesNcCsg|_t�||�dS)N)rfrr)rr!rrrr�szMHMessage.__init__cCs|jdd�S)N)rf)rrrrr�szMHMessage.get_sequencescCst|�|_dS)N)r7rf)rr"rrrr$�szMHMessage.set_sequencescCs6t|t�r"||jkr2|j�|�ntdt|���dS)Nzsequence type must be str: %s)rYrerfr�rnro)rr)rrrr
�s

zMHMessage.add_sequencecCs*y|j�|�Wntk
r$YnXdS)N)rfr$rO)rr)rrr�remove_sequence�szMHMessage.remove_sequencecCsJt|t�rdt|���}d|kr*|�d�n|�d�|�d�d|krP|�d�d|krb|�d�n�t|t�r�t|���}d|kr�|�d�n
|�d	�d|kr�|�d�d|kr�|�d
�n�t|t�r�x||��D]}|�|�q�Wn`t|t	��r(t|���}d|k�r|�
d�d|k�rF|�
d�nt|t��r6ntdt
|���dS)
Nr*r{rSr[rXrZrT�ROrUrYr,z$Cannot convert to specified type: %s)rYr	rrr�rOr�rr
rr]rrnro)rr!r"r)rrrrC�s@










zMHMessage._explain_to)N)
rurvrwrErrr$r
rgrCrrrrr�s
c@s^eZdZddgZddd�Zdd�Zdd	�Zd
d�Zdd
�Zdd�Z	dd�Z
dd�Zdd�ZdS)rr/�_visibleNcCsg|_t�|_t�||�dS)N)r/rrir)rr!rrrr"szBabylMessage.__init__cCs|jdd�S)N)r/)rrrrr0(szBabylMessage.get_labelscCst|�|_dS)N)r7r/)rr7rrrr2,szBabylMessage.set_labelscCs6t|t�r"||jkr2|j�|�ntdt|���dS)Nzlabel must be a string: %s)rYrer/r�rnro)rr9rrrr]0s

zBabylMessage.add_labelcCs*y|j�|�Wntk
r$YnXdS)N)r/r$rO)rr9rrr�remove_label8szBabylMessage.remove_labelcCs
t|j�S)N)rri)rrrrr??szBabylMessage.get_visiblecCst|�|_dS)N)rri)rZvisiblerrrr1CszBabylMessage.set_visiblecCsjx6|j��D](}||kr,|j�|||�q|j|=qWx,dD]$}||kr>||jkr>|||j|<q>WdS)N)ZDateZFromzReply-ToZToZCCZSubject)rir8ra)r�headerrrr�update_visibleGs
zBabylMessage.update_visiblecCsvt|t�r~t|���}d|kr*|�d�n|�d�|�d�d|ksNd|krX|�d�d|krj|�d�d	|kr||�d
�n�t|t�r�t|���}d|kr�|�d�n
|�d�d	|kr�|�d
�d|kr�|�d�n�t|t��rt|���}d|k�r|�d�d|k�rr|�d�nXt|t	��rT|�
|���x<|��D]}|�|��q>Wnt|t
��rbntdt|���dS)Nr*r{rSr-r.r\r,rTr+rVrhrUrWrYrZz$Cannot convert to specified type: %s)rYr	rr0r�rOr�rr
rr1r?r]rrnro)rr!r7r9rrrrCRsF










zBabylMessage._explain_to)N)
rurvrwrErr0r2r]rjr?r1rlrCrrrrrs
c@seZdZdS)r
N)rurvrwrrrrr
|sc@s�eZdZd%dd�Zd&dd�Zd'dd�Zd(dd	�Zd)d
d�Zdd
�Zdd�Z	d*dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd �Zd!d"�Zed#d$��ZdS)+r�NcCs$||_|dkr|��|_n||_dS)N)r�r��_pos)rr��posrrrr�sz_ProxyFile.__init__cCs|�||jj�S)N)�_readr�rS)r�sizerrrrS�sz_ProxyFile.readcCs|�||jj�S)N)ror��read1)rrprrrrq�sz_ProxyFile.read1cCs|�||jj�S)N)ror�rl)rrprrrrl�sz_ProxyFile.readlinecCs>g}x4|D],}|�|�|dk	r
|t|�8}|dkr
Pq
W|S)Nr)r�r�)r�sizehintrBrsrrr�	readlines�s

z_ProxyFile.readlinesccs x|��}|sdS|VqWdS)N)rl)rrsrrrr;�s
z_ProxyFile.__iter__cCs|jS)N)rm)rrrrr��sz_ProxyFile.tellrcCs4|dkr|j�|j�|j�||�|j��|_dS)Nr�)r�r_rmr�)r�offset�whencerrrr_�sz_ProxyFile.seekcCs0t|d�r,zt|jd�r"|j��Wd|`XdS)Nr�rL)rEr�rL)rrrrrL�s

z_ProxyFile.closecCs2|dkrd}|j�|j�||�}|j��|_|S)NrW)r�r_rmr�)rrp�read_methodrBrrrro�sz_ProxyFile._readcCs|S)Nr)rrrr�	__enter__�sz_ProxyFile.__enter__cGs|��dS)N)rL)r�excrrr�__exit__�sz_ProxyFile.__exit__cCs
|j��S)N)r��readable)rrrrrz�sz_ProxyFile.readablecCs
|j��S)N)r��writable)rrrrr{�sz_ProxyFile.writablecCs
|j��S)N)r��seekable)rrrrr|�sz_ProxyFile.seekablecCs
|j��S)N)r�rI)rrrrrI�sz_ProxyFile.flushcCs&t|d�sdSt|jd�sdS|jjS)Nr�Tr
F)rEr�r
)rrrrr
�s

z_ProxyFile.closed)N)N)N)N)N)r)rurvrwrrSrqrlrsr;r�r_rLrorwryrzr{r|rI�propertyr
rrrrr��s"





		r�c@s8eZdZd
dd�Zdd�Zddd�Zd	d
�Zdd�ZdS)r�NcCst�|||�||_||_dS)N)r�r�_start�_stop)rr�r�r�rrrr�sz_PartialFile.__init__cCst�|�|jS)N)r�r�r~)rrrrr��sz_PartialFile.tellrcCs<|dkr|j|_d}n|dkr*|j|_d}t�|||�dS)Nrr�r�)r~rmrr�r_)rrtrurrrr_�sz_PartialFile.seekcCsB|j|j}|dkrdS|dks0|dks0||kr4|}t�|||�S)Nrr�)rrmr�ro)rrprvZ	remainingrrrro�sz_PartialFile._readcCst|d�r|`dS)Nr�)rEr�)rrrrrLs
z_PartialFile.close)NN)r)rurvrwrr�r_rorLrrrrr��s



	r�Tc
Cs�d}�yZtrpyt�|tjtjB�WnJtk
rn}z,|jtjtjtjfkr\t	d|j
��n�Wdd}~XYnX|�r^yt|j
d�}|��Wn:tk
r�}z|jtjtjfkr�dS�Wdd}~XYnXy`yt
�|j
|j
d�d}Wn2ttfk
�rt
�|j
|j
d�d}YnXt
�|j
�Wn0tk
�r\t
�|j
�t	d|j
��YnXWn8t�r|t�|tj�|�r�t
�|j
d��YnXdS)NFzlockf: lock unavailable: %sz.lockTzdot lock unavailable: %s)�fcntl�lockfZLOCK_EXZLOCK_NBr�r�ZEAGAINr�r�rr�r�rLrr�r�r�r�r%r�r$�LOCK_UN)r�r�Zdotlock_doner�Zpre_lockrrrr�
sH
r�cCs8trt�|tj�tj�|jd�r4t�|jd�dS)Nz.lock)r�r�r�rrr~r�r$)r�rrrr�4sr�c	Cs8t�|tjtjBtjBd�}z
t|d�St�|�XdS)Ni�zrb+)rr�r�r�O_RDWRrL)r�fdrrrr�;s
r�cCs$td|tt���t��t��f�S)Nz%s.%s.%s.%s)r�r�r�r�r�rr�)rrrrr�Csr�cCs$|��ttd�r t�|���dS)N�fsync)rIrErr��fileno)r�rrrr�Is
r�cCst|�|��dS)N)r�rL)r�rrrr�Osr�c@seZdZdS)rN)rurvrwrrrrrUsc@seZdZdS)rN)rurvrwrrrrrXsc@seZdZdS)rN)rurvrwrrrrr[sc@seZdZdS)rN)rurvrwrrrrr^sc@seZdZdS)rN)rurvrwrrrrras)T)/rr�rdr�r�rBrhr1Z
email.messageZemail.generatorrZr-r��ImportError�__all__rarMrrr�r�rrrrr!rr	r�r
rrr
r�r�r�r�r�r�r�r��	Exceptionrrrrrrrrr�<module>	sn

h8DB4-3z%mqH_c'
*

Hacked By AnonymousFox1.0, Coded By AnonymousFox