%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/mailman/Mailman/Handlers/
Upload File :
Create Path :
Current File : //lib/mailman/Mailman/Handlers/Decorate.pyc

�
��ac@s�dZddlZddlmZddlmZddlmZddlmZddlm	Z	ddl
mZdd	lm
Z
dd
lmZddlmZyeefWndZd
ZnXd�Zdd�ZdS(s?Decorate a message by sticking the header and footer around it.i����N(tListType(tMIMEText(tmm_cfg(tUtils(tErrors(tMessage(t_(tSafeDict(tsyslogiic
Cs	|jd�s|jd�r"dSi}|jd�rS|jd�}t|�tkrjt|�dkspt�|dj�}||d<y�|j|�|d<|j|�|d	<|j|�|d
<|j	|�p�d}y |jtj
|d
��}Wnttfk
r|}nX||d<|j|�|d<WqStjk
rOqSXn|j|jd
i��t||jd|�}t||jd|�}|r�|r�dS|j�p�d}	tj
|j�}
|j�}t}|j�r�|dkr�t|t�r|}
nt||
d�}
t|t�r?|}nt||
d�}yBt|jdt�|	�}d}}|r�|jd�r�d}n|r�|jd�r�d}n|
||||}y|j|
�}|
}Wn5tk
r|
|	kr|j|	�}|	}qnX|j d�}|j d�}|d=|d=|j!||�|rs|j"d|�n|r�|j"d|�nt#}Wqft$tfk
r�qfXn�|j�dkrf|j�}t|t�s�|g}n|rt%|d|
�}d|d <|j&|�n|rPt%|d|
�}d|d <|j'd|�n|j!|�t#}n|spdSt(�}t#}xB|j)�D]4\}}|j�j*d!�r�|||<t}q�q�W|j!|j��|j+|j,��|j-|_-|j.|_.|j/|j0��|s.|j�|d"<n|d#dkrKd$|d%<nt1|d&�ri|j2|_2n|g}|r�t%|d|
�}d|d <|j'd|�n|r�t%|d|
�}d|d <|j&|�n|j!|�|d=|d=|d'=d|d"<dS((Ntisdigestt
nodecoratetpersonalizetrecipsiituser_addresstuser_delivered_tot
user_passwordt
user_languaget	user_nametuser_optionsurlsdecoration-datasnon-digest headersnon-digest footersus-asciis
text/plaintignoretdecodeus
u
tformattdelspscontent-transfer-encodingscontent-typetFormattDelSpsmultipart/mixedtplaintinlinesContent-Dispositionscontent-sContent-Typesmime-versions1.0sMIME-Versiont__version__scontent-disposition(3tgetttypeRtlentAssertionErrortlowertgetMemberCPAddresstgetMemberPasswordtgetMemberLanguaget
getMemberNametNonetencodeRt
GetCharSettAttributeErrortUnicodeErrort
GetOptionsURLRtNotAMemberErrortupdatetdecoratet
msg_headert
msg_footertget_content_charsettpreferred_languagetget_content_typetTruetis_multipartt
isinstancetunicodetget_payloadtendswitht	get_paramtset_payloadt	set_paramtFalsetLookupErrorRtappendtinsertRtitemst
startswithtset_unixfromtget_unixfromtpreambletepiloguetset_default_typetget_default_typethasattrR(tmlisttmsgtmsgdatatdRtmembertusernametheadertfootertmcsettlcsettmsgtypetwraptuheadertufootert
oldpayloadtfrontseptendseptpayloadtnewcsetRRtmimeftrtmimehdrtinnertcopiedthtv((sg/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Handlers/Decorate.pytprocess)s�*
 

		
		






		


	


cCsti|jd6|j�d6|j�d6|jd6|jd6|jd6|jd6tjd6�}|dk	r~|j
|�nt|d	d
�r�tj
|�}ny,tjddtjd
d||��}Wn2ttfk
r}tdd||�|}nX|S(Nt	real_namet	list_namet_internal_namet	host_nametweb_page_urltdescriptiontinfotcgiexttuse_dollar_stringsis(?m)(?<!^--) +(?=\n)ts\r\ns\nterrors"Exception while calculating %s:
%s(RRct
internal_nameRfRgRhRiRtCGIEXTR%R,tgetattrRt
to_percenttretsubt
ValueErrort	TypeErrorR(RIttemplatetwhatt	extradictRLttextte((sg/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Handlers/Decorate.pyR-�s&






 
(t__doc__RrttypesRtemail.MIMETextRtMailmanRRRtMailman.MessageRtMailman.i18nRtMailman.SafeDictRtMailman.Logging.SyslogRR3R<RbR%R-(((sg/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Handlers/Decorate.pyt<module>s"
	�

Zerion Mini Shell 1.0