%PDF- %PDF-
Mini Shell

Mini Shell

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

�
��ac@sdZddlZddlmZddlmZddlmZddlm	Z	ddlm
Z
ddlmZdd	lmZdd
l
mZddlmZddlmZdd
lmZdejfd��YZd�Zd�Zd�Zd�ZdS(sPosting moderation filter.
i����N(tMIMEMessage(tMIMEText(t	parseaddr(tmm_cfg(tUtils(tMessage(tErrors(t_(tHold(tsyslog(tMailListtModeratedMemberPostcBseZRS((t__name__t
__module__(((sg/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Handlers/Moderate.pyR%s	cCs\|jd�rdSd|d<t|jd��\}}|r|jdkrtj||�r|jdkr{d|d<q	|jdkr�d|d<q	|jdkr�|j}|r�tj|�}ntjtd��}tj	|�q	|jd	kr	tj
�q	qnx-|j�D]}|j|�rPqqWd}|r|j|tj�r�|jdkr�||d
<tj|||t�q�|jdkr�|j}|r�tj|�}nd}tj	|�q�|jdkr�tj
�q�ds�td��ndS|j�}|j�}t||j|�r3dSt||j|�rdtj|||tj�nt||j|�r�t|�nt||j|�r�t ||�nd|j!ko�d	kns�t�|j!dks�|jd�r�dS|j!dkrtj|||tj�n;|j!dkr9t|�n|j!dkrXt ||�ndS(
Ntapproveditfrom_is_listtfromiiisYou are not allowed to post to this mailing list From: a domain which
publishes a DMARC policy of reject or quarantine, and your message has been
automatically rejected.  If you think that your messages are being rejected in
error, contact the mailing list owner at %(listowner)s.itsendersbad member_moderation_actiont
fromusenet("tgetRtdmarc_moderation_actionRtIsDMARCProhibitedtdmarc_moderation_noticetwrapRRt
RejectMessagetDiscardMessagetget_senderstisMembertNonetgetMemberOptionRtModeratetmember_moderation_actionRthold_for_approvalRtmember_moderation_noticetAssertionErrort
get_sendert
internal_namet	matches_ptaccept_these_nonmembersthold_these_nonmemberst
NonMemberPosttreject_these_nonmemberst	do_rejecttdiscard_these_nonmemberst
do_discardtgeneric_nonmember_action(tmlisttmsgtmsgdatatdntaddrttextRtlistname((sg/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Handlers/Moderate.pytprocess2st


		

	
%
c
Csfg|D]*}|jd�p(|jd�s|^q}tj|dd�}|j|�r_dSx|D]�}|jd�r�ytj|tj�}Wntjk
r�qfnX|j|�r^dSqf|jd�rfy^|dj	�j
�}||krtdd|�n%t|dd�}	|	j
|�r0dSWq^tjk
rZtdd	||�q^XqfqfWdS(
Nt^t@tfoldcaseiterrors,*_these_nonmembers in %s references own listtlockis8*_these_nonmembers in %s references non-existent list %s(t
startswithRt	List2Dictthas_keytretcompilet
IGNORECASER9tsearchtlowertstripR	R
RRtMMUnknownListError(
Rt
nonmembersR4R2t
plainaddrstaddrdicttaretcretmnametmother((sg/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Handlers/Moderate.pyR%�s8

cCsU|j�}|jr6tjtjt|j���ntjtjtd���dS(Ns�You are not allowed to post to this mailing list, and your message has been
automatically rejected.  If you think that your messages are being rejected in
error, contact the mailing list owner at %(listowner)s.(t
GetOwnerEmailtnonmember_rejection_noticeRRRRR(R.t	listowner((sg/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Handlers/Moderate.pyR*�s	cCs�|j�}|jr�|j}d|jddd�}tj|j�|j�td�d|�}|j	d�t
tjtd��d	tj
|��}|j|�|jt|��|j|�ntj�dS(
Ns3%s/?VARHELP=privacy/sender/discard_these_nonmemberstadmintabsoluteisAuto-discard notificationtlangsmultipart/mixeds6The attached message has been automatically discarded.t_charset(R#tforward_auto_discardstpreferred_languagetGetScriptURLRtUserNotificationRLtGetBouncesEmailRtset_typeRRRt
GetCharSettattachRtsendRR(R.R/RRQtvarhelptnmsgR3((sg/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Handlers/Moderate.pyR,�s"				

(t__doc__R>temail.MIMEMessageRtemail.MIMETextRtemail.UtilsRtMailmanRRRRtMailman.i18nRtMailman.HandlersRtMailman.Logging.SyslogR	tMailman.MailListR
t
ModeratedPostRR5R%R*R,(((sg/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Handlers/Moderate.pyt<module>s"
	`	%	

Zerion Mini Shell 1.0