%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/mailman/Mailman/Handlers/
Upload File :
Create Path :
Current File : //lib/mailman/Mailman/Handlers/CalcRecips.pyo

�
��ac@s�dZddlZddlmZddlmZddlmZddlmZddlm	Z	ddl
mZdd	lm
Z
dd
lmZddlmZyeWn!ek
r�ddlmZnXd
�Zd�Zd�Zd�ZdS(sSCalculate the regular (i.e. non-digest) recipients of the message.

This module calculates the non-digest recipients for the message based on the
list's membership and configuration options.  It places the list of recipients
on the `recips' attribute of the message.  This attribute is used by the
SendmailDeliver and BulkDeliver modules.
i����N(tmm_cfg(tUtils(tMessage(tErrors(tENABLED(tMailList(t_(tsyslog(tMMUnknownListError(tSetcCs�|jd�rdSd}|j�}y"|j|tj�rFd}nWntjk
r]nXg}|jd|�}||k	r�|jtj	tj
f|�r�|j|j�|j
��}||d<dS|j}td�}	tjtj|	��ng|j�D]*}
|j|
�tkr|j|
�^q}|swy|j|j|��Wqwtjtfk
rsqwXnt||||�t||||�}t||||�}||d<dS(Ntrecipsiiturgents�Your urgent message to the %(realname)s mailing list was not authorized for
delivery.  The original message as received by Mailman is attached.
(thas_keyt
get_sendertgetMemberOptionRtDontReceiveOwnPostsRtNotAMemberErrortgettAuthenticatetAuthListModeratort
AuthListAdmintgetMemberCPAddressestgetRegularMemberKeystgetDigestMemberKeyst	real_nameRt
RejectMessageRtwraptgetDeliveryStatusRtgetMemberCPAddresstremovet
ValueErrortdo_topic_filterst
do_excludet
do_include(tmlisttmsgtmsgdatatinclude_sendertsendertmissingtpasswordR
trealnamettexttm((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Handlers/CalcRecips.pytprocess-sF
		
		*c	Cs�|js
dS|jd�}g}|r�x�|D]O}|j|�}|sPq/nx+|D]}||krWPqWqWW|j|�q/WnKxH|D]@}|j|�s�q�n|j|tj�s�|j|�q�q�Wx|D]}|j|�q�WdS(Nt	topichits(ttopics_enabledRtgetMemberTopicstappendRRtReceiveNonmatchingTopicsR(	R"R#R$R
thitst	zaprecipstusertutopicsttopic((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Handlers/CalcRecips.pyRjs*	


	
cCs�|js
|St|�}tjj|jdg�|jdg��}g|D]\}}|j�^qN}x^|jD]S}|j�}||kr�qvn|jd�\}}	||j�kr�t	dd|�qvnyt
|dt�}
Wn$tk
rt	dd|�qvnXt
jrC|
j|	krCt	dd|�qvn|jr|x-|j�D]}|
j|�rYPqYqYWqvntg|
j�D]*}|
j|�tkr�|
j|�^q��}
||
8}qvWt|�S(	Nttotcct@terrors$Exclude list %s is a self reference.tlocksExclude list %s not found.s*Exclude list %s is not in the same domain.(tregular_exclude_liststsettemailRtgetaddressestget_alltlowertsplitt
internal_nameRRtFalseRRtALLOW_CROSS_DOMAIN_SIBLINGt	host_nametregular_exclude_ignoretget_senderstisMemberRRRRtlist(R"R#R$R
tdestinationstxtytlistnametlistlhsthostnametslistR&R+tsrecips((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Handlers/CalcRecips.pyR �sF	%	

		-c
Cs�|js
|St|�}tjj|jdg�|jdg��}g|D]\}}|j�^qN}x%|jD]}|j�}||kr�qvn|jd�\}}	||j�kr�t	dd|�qvnyt
|dt�}
Wn$tk
rt	dd|�qvnXt
jrC|
j|	krCt	dd|�qvntg|
j�D]*}|
j|�tkrS|
j|�^qS�}||O}qvWt|�S(	NR7R8R9R:s$Include list %s is a self reference.R;sInclude list %s not found.s*Include list %s is not in the same domain.(tregular_include_listsR=R>RR?R@RARBRCRRRDRRRERFRRRRRJ(
R"R#R$R
RKRLRMRNRORPRQR+RR((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Handlers/CalcRecips.pyR!�s<	%	

	-(t__doc__temail.UtilsR>tMailmanRRRRtMailman.MemberAdaptorRtMailman.MailListRtMailman.i18nRtMailman.Logging.SyslogRtMailman.ErrorsRR=t	NameErrortsetsR	R,RR R!(((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Handlers/CalcRecips.pyt<module>s$
	=	.	+

Zerion Mini Shell 1.0