%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/mailman/Mailman/Queue/
Upload File :
Create Path :
Current File : //lib/mailman/Mailman/Queue/CommandRunner.pyc

�
��ac@s�dZddlmZddlZddlZddlmZmZddlm	Z	ddlm
Z
ddlmZddlm
Z
dd	lmZdd
lmZddlmZddlmZdd
lmZmZmZddlmZddlmZddlmZddlm Z dZ!dZ"dZ#dZ$dZ%ye&e'fWne(k
rkdZ&dZ'nXddd��YZ)defd��YZ*dS(s$-request robot command queue runner.i����(t
nested_scopesN(t
StringTypetUnicodeType(tmm_cfg(tUtils(tMessage(tReplybot(t_(tRunner(tsyslog(tLockFile(t
decode_headertmake_headertHeader(tHeaderParseError(ttyped_subpart_iterator(tMIMEText(tMIMEMessages
iiiitResultscBs/eZd�Zd�Zdd�Zd�ZRS(cCs�||_||_||_d|_g|_g|_g|_d|_d|_	t
|_|jdd�}y>t
t|��j�}|jdd�}|jj|�Wntttfk
r�nXd}xt|dd�D]}Pq�W|dks||k	r|jjtd��n|dkr,dS|jd	t
�}t|t�sbt|t�sbt�|j�}|jj|tj �|jj|tj�dS(
Nitsubjecttsus-asciitignorettexttplains"Ignoring non-text/plain MIME partstdecode( tmlisttmsgtmsgdatatNonet
returnaddrtcommandstresultstignoredtlinenotsubjcmdretriedtTruetrespondtgetRRt__unicode__tencodetappendRtUnicodeErrortLookupErrorRRtget_payloadt
isinstanceRRtAssertionErrort
splitlinestextendRtDEFAULT_MAIL_COMMANDS_MAX_LINES(tselfRRRtsubjtparttbodytlines((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Queue/CommandRunner.pyt__init__?s:										$cCs�t}t}x�|jD]�}|r�|j�r�|j�}|jd�j�}|j||�}|tksy|tkr�|}q�n|j	d7_	|tks�|tkrPqqW|S(Nii(
tBADCMDtCONTINUERtstriptsplittpoptlowert
do_commandtSTOPR!(R1tfoundtrettlinetargstcmd((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Queue/CommandRunner.pytprocessmscCs�|dkrd}nd|}yt|�tj|}Wnlttfk
r�|jr�|r�|jd7_|jd�}|j||�S|j	dkr�t
StSnX|j||�r�t
StSdS(NsMailman.Commands.cmd_ii((Rt
__import__tsystmodulestImportErrort
ValueErrorR"R;R=R!R7tBADSUBJRDR>R8(R1RCRBtmodnamethandler((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Queue/CommandRunner.pyR=~s"	

cCs�d�}|jsdStjtd��g}|jrc|jtd��|j||j��ng|j|jD]}|rt|j	�rt|^qt}|r�t
jdkr�|jtd��|j||��n|r|jr|jtjtd���n|jrJt
jdkrJ|jtd��|j||j��n|jtd��tj
|jd	�}g}x?|D]7}t|t�r�|j|d
�}n|j|�q�Wttj|�d|�}|jp�|jj�}	|jj|	|jd	�sdStj|	|jj�td�d	|jd	�}
|
jd
�|
j|�t
jdkr�|jjtd��nt
jdkr�ttd�d|�}nt |j�}|
j|�|
j!|j�dS(NcSsg|D]}d|^qS(Ns    ((R5RA((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Queue/CommandRunner.pytindent�ssYThe results of your email command are provided below.
Attached is your original message.
s
- Results:is
- Unprocessed:spNo commands were found in this message.
To obtain instructions, send a message containing just the word "help".
s
- Ignored:s

- Done.

tlangtreplacet_charsets"The results of your email commandssmultipart/mixedis6Message body suppressed by Mailman site configuration
is:Original message suppressed by Mailman site configuration
("R$RtwrapRRR(R/RR!R9RtRESPONSE_INCLUDE_LEVELR t
GetCharSetRR,RR'RtNLtjoinRRt
get_senderRtautorespondToSenderRtUserNotificationt
GetOwnerEmailtset_typetattachtset_payloadRtsend(R1RMtrespRAtunprocessedtcharsettencoded_resptitemRtrecipRtorig((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Queue/CommandRunner.pyt
send_response�s^				
	

		
N(t__name__t
__module__R6RDRR=Re(((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Queue/CommandRunner.pyR>s	.	t
CommandRunnercBseZejZd�ZRS(c	Cs|jdd�j�}|jdd�j�}|dkre|dkretdd	||j��tS|j�tj|||�|jd
kr�tdd�tSt	|||�}y|j
dtj�Wnt
jk
r�tSXzt}|jd
�r
|j�}n�|jd�r+|jd�}n{|jd�rL|jd�}nZ|jd�r�tjtj|jdd��}|r�|jd|jd�f�}q�n|tkr�tjr�tdd|jdd��n|j�|j�Wd|j�XdS(Nt
precedenceRsx-acktyestbulktjunktlisttvettes'Precedence: %s message discarded by: %sisreplied and discardttimeoutt	torequestttojoinRUttoleavetleavet	toconfirmttotconfirmtcookies(No command, message discarded, msgid: %ss
message-idsn/a(RkRlslist(R%R<R	tGetRequestEmailtFalsetLoadRRDtautorespond_requestsRtLockRtLIST_LOCK_TIMEOUTR
tTimeOutErrorR#R7R=tretmatchtVERP_CONFIRM_REGEXPtgrouptDISCARD_MESSAGE_WITH_NO_COMMANDRetSavetUnlock(	R1RRRRitacktresR@tmo((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Queue/CommandRunner.pyt_dispose�sF	

!$
(RfRgRtCMDQUEUE_DIRtQDIRR�(((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Queue/CommandRunner.pyRh�s	((+t__doc__t
__future__RRRFttypesRRtMailmanRRRtMailman.HandlersRtMailman.i18nRtMailman.Queue.RunnerRtMailman.Logging.SyslogR	R
temail.HeaderRRR
temail.ErrorsRtemail.IteratorsRtemail.MIMETextRtemail.MIMEMessageRRTR8R>R7RJR#Ryt	NameErrorRRh(((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Queue/CommandRunner.pyt<module>s:


�

Zerion Mini Shell 1.0