%PDF- %PDF-
Mini Shell

Mini Shell

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

�
��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
�}|j�}|jj|tj �|jj|tj�dS(
Nitsubjecttsus-asciitignorettexttplains"Ignoring non-text/plain MIME partstdecode(tmlisttmsgtmsgdatatNonet
returnaddrtcommandstresultstignoredtlinenotsubjcmdretriedtTruetrespondtgetRRt__unicode__tencodetappendRtUnicodeErrortLookupErrorRRtget_payloadt
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__?s8										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!(R/tfoundtrettlinetargstcmd((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"R9R;R!R5tBADSUBJRBR<R6(R/RAR@tmodnamethandler((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    ((R3R?((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!R7RtRESPONSE_INCLUDE_LEVELR t
GetCharSetRt
isinstanceRR'RtNLtjoinRRt
get_senderRtautorespondToSenderRtUserNotificationt
GetOwnerEmailtset_typetattachtset_payloadRtsend(R/RKtrespR?tunprocessedtcharsett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__R4RBRR;Rd(((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	torequestttojoinRTttoleavetleavet	toconfirmttotconfirmtcookies(No command, message discarded, msgid: %ss
message-idsn/a(RjRkslist(R%R:R	tGetRequestEmailtFalsetLoadRRBtautorespond_requestsRtLockRtLIST_LOCK_TIMEOUTR
tTimeOutErrorR#R5R;tretmatchtVERP_CONFIRM_REGEXPtgrouptDISCARD_MESSAGE_WITH_NO_COMMANDRdtSavetUnlock(	R/RRRRhtacktresR>tmo((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Queue/CommandRunner.pyt_dispose�sF	

!$
(ReRfRtCMDQUEUE_DIRtQDIRR�(((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Queue/CommandRunner.pyRg�s	((+t__doc__t
__future__RR~RDttypesRRtMailmanRRRtMailman.HandlersRtMailman.i18nRtMailman.Queue.RunnerRtMailman.Logging.SyslogR	R
temail.HeaderRRR
temail.ErrorsRtemail.IteratorsRtemail.MIMETextRtemail.MIMEMessageRRSR6R<R5RHR#Rxt	NameErrorRRg(((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