Your IP : 3.23.92.255


Current Path : /lib64/python2.7/Demo/scripts/
Upload File :
Current File : //lib64/python2.7/Demo/scripts/mboxconvert.pyo

�
V
�Qc@s�ddlZddlZddlZddlZddlZddlZddlZd�Zejd�Z	d�Z
d�Zdadd�Z
ed	kr�e�ndS(
i����Nc	Cs�t}y#tjtjdd�\}}Wn7tjk
rb}tjjd|�tjd�nXx)|D]!\}}|dkrjt}qjqjW|s�dg}nd}x�|D]�}|dks�|dkr�|tj	�p�|}q�t
jj|�rt
|�p|}q�t
jj|�r�yt|�}Wn6tk
re}tjjd	||f�d}q�nX||�pu|}|j�q�tjjd
|�d}q�W|r�tj|�ndS(Nitfs%s
is-ft-its%s: %s
s%s: not found
(tmmdftgetopttsystargvterrortstderrtwritetexittmessagetstdintostpathtisdirtmhtisfiletopentIOErrortclose(	tdofiletoptstargstmsgtotatststargR((s0/usr/lib64/python2.7/Demo/scripts/mboxconvert.pytmains<#



s[1-9][0-9]*cCs�d}tj|�}x�|D]�}tj|�t|�krCqntjj||�}yt|�}Wn6tk
r�}t	j
jd||f�d}qnXt|�p�|}qW|S(Nis%s: %s
i(
R
tlistdirtnumerictmatchtlenRtjoinRRRRR	R(tdirRtmsgsRtfnR((s0/usr/lib64/python2.7/Demo/scripts/mboxconvert.pyR2s
cCsad}xT|j�}|sPn|dkrCt||�p=|}q	tjjd|f�q	|S(Nis
sBad line in MMFD mailbox: %r
(treadlineRRRR	(RRtline((s0/usr/lib64/python2.7/Demo/scripts/mboxconvert.pyRBs	iRc
Csyd}tj|�}|jd�\}}|jd�}|rQtj|�}n<tjjd|j	d�f�t
j|j��t
j}dG|Gtj|�GHx|jD]
}|Gq�W|jd�stdadt|�tf}	tjjd|	|f�d	G|	GHnHx`|j�}||kr0Pn|sPtjjd
�d}Pn|d dkrmd
|}n|GqH|S(NitFromtDatesUnparseable date: %r
s
message-idis<%s.%d>sAdding Message-ID %s (From %s)
sMessage-ID:sUnexpected EOF in message
isFrom t>(trfc822tMessagetgetaddrtgetdatettimetmktimeRRR	t	getheaderR
tfstattfilenotstattST_MTIMEtctimetheadersthas_keytcounterthexR&(
Rt	delimiterRtmtfullnametemailtttttR'tmsgid((s0/usr/lib64/python2.7/Demo/scripts/mboxconvert.pyRQs@	

t__main__(R+RR/R
R4RtreRtcompileRRRR9Rt__name__(((s0/usr/lib64/python2.7/Demo/scripts/mboxconvert.pyt<module>s	!		
*