%PDF- %PDF-
Mini Shell

Mini Shell

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

�
��ac@srdZddlZddlZddlmZddlmZddlmZddl	m
Z
ddl	mZddl	mZdd	l	m
Z
dd
l	mZddlmZddlmZdd
l	mZdZeje
jd��d Zd�Zied�e
j6ed�e
j6ed�e
j6ed�e
j6ZejZddd��YZddd��YZdS(sHandle delivery bounces.i����N(t
StringType(tMIMEText(tMIMEMessage(tmm_cfg(tUtils(tMessage(t
MemberAdaptor(tPending(tMMUnknownListError(tsyslog(ti18ntiicCs|S(N((ts((s]/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Bouncer.pyt_+ssdue to excessive bouncessby yourselfsby the list administratorsfor unknown reasonst_BounceInfocBs#eZd�Zd�Zd�ZRS(cCs)||_d|_|j|||�dS(N(tmembertNonetcookietreset(tselfRtscoretdatetnoticesleft((s]/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Bouncer.pyt__init__8s		cCs(||_||_||_t|_dS(N(RRRtZEROHOUR_PLUSONEDAYt
lastnotice(RRRR((s]/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Bouncer.pyR=s			cCsd|jS(Ns�<bounce info for member %(member)s
        current score: %(score)s
        last bounce date: %(date)s
        email notices left: %(noticesleft)s
        last notice date: %(lastnotice)s
        confirmation cookie: %(cookie)s
        >(t__dict__(R((s]/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Bouncer.pyt__repr__Cs	(t__name__t
__module__RRR(((s]/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Bouncer.pyR7s		tBouncercBsJeZd�Zdded�Zd�Zd�Zd�Zdd�Z	RS(cCsvtj|_tj|_tj|_tj|_tj	|_
tj|_tj
|_tj|_i|_i|_dS(N(RtDEFAULT_BOUNCE_PROCESSINGtbounce_processingtDEFAULT_BOUNCE_SCORE_THRESHOLDtbounce_score_thresholdtDEFAULT_BOUNCE_INFO_STALE_AFTERtbounce_info_stale_aftert(DEFAULT_BOUNCE_YOU_ARE_DISABLED_WARNINGSt bounce_you_are_disabled_warningst1DEFAULT_BOUNCE_YOU_ARE_DISABLED_WARNINGS_INTERVALt)bounce_you_are_disabled_warnings_intervalt.DEFAULT_BOUNCE_UNRECOGNIZED_GOES_TO_LIST_OWNERt&bounce_unrecognized_goes_to_list_ownert&DEFAULT_BOUNCE_NOTIFY_OWNER_ON_DISABLEtbounce_notify_owner_on_disablet&DEFAULT_BOUNCE_NOTIFY_OWNER_ON_REMOVALtbounce_notify_owner_on_removaltbounce_infotdelivery_status(R((s]/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Bouncer.pytInitVarsQs	g�?cCsS|j|�s$|js|r#dSddlm}x�|jD]�}|jd�\}}	|j�}||j�kr�tdd|�q=nzmd}
y||�}
Wn*t	k
r�tdd|j
|�w=nX|
j||||dt�|
j
�Wd|
r|
j�r|
j�nXq=WdS|j|�}|dkrRtj�d }nt|t�s�t||||j�}td	d
|j�||j�n|j|�tjkr�td	d|j�|�dS|j|krtd	d|j�|tjd
|d��n�tj|�}tj|j�}
|
|j|krt|j|||j�td	d|j�|�n7|j|7_||_td	d|j�||j�|j|j kr-t!j"rtd	d|j�||j|j �|j#||�|jd|j|j$�q-|j%|||�n|j|�rO|j&||�ndS(Ni����(tMailListt@terrors(Bouncer: %s: Include list self references)Bouncer: %s: Include list "%s" not found.tsiblingitbounces%s: %s bounce score: %ss%s: %s residual bounce receiveds*%s: %s already scored a bounce for date %ss%d-%b-%Yiis'%s: %s has stale bounce info, resettings%s: %s current bounce score: %ss-sending %s list probe to: %s (score %s >= %s)(iiiiii('tisMembertregular_include_liststMailman.MailListR2tsplittlowert
internal_nameR	RRt	real_nametregisterBouncetTruetSavetLockedtUnlockt
getBounceInfottimet	localtimet
isinstanceRR&RtgetDeliveryStatusRtENABLEDRtstrftimeRtmidnightR$RR"RtVERP_PROBESt	sendProbeRtdisableBouncingMembert
setBounceInfo(RRtmsgtweighttdayR5R2tlistaddrtlistnamethostnametsiblisttinfotnowt
lastbounce((s]/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Bouncer.pyR>js�
						
cCs�|jtj|j�|�}||_|j||�tjr\tdd|j�|�n%tdd|j�||j	|j
�|j|tj
�|j|�|jr�|j||�ndS(NR6s-%s: %s disabling due to probe bounce receiveds-%s: %s disabling due to bounce score %s >= %s(tpend_newRt	RE_ENABLER<RRNRRKR	RR"tsetDeliveryStatusRtBYBOUNCEtsendNextNotificationR,t_Bouncer__sendAdminBounceNotice(RRRVROR((s]/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Bouncer.pyRM�s				
	cCstj|j�}tjdi|jd6|d6dd6td�d6dd6dd	6|d
6d|�}td�}tj|j�||d
|j	�}|j
d�|jt|dtj
|j	���t|t�r�|jt|��n|jt|��|j|�dS(Ns
bounce.txtRStaddrRtnegativetdisabledtdidtbuttreenablet	owneraddrtmlistsBounce action notificationtlangsmultipart/mixedt_charset(Rtget_site_emailt	host_nametmaketextR=R
RtUserNotificationt
GetOwnerEmailtpreferred_languagetset_typetattachRt
GetCharSetRFRRtsend(RRROt	siteownerttexttsubjecttumsg((s]/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Bouncer.pyt__sendAdminBounceNotice�s,


		
c
Cs�|j|�}|dkrdS|j|�}|jdkr�|j|dd|jdd�|j|j�|tj	kr�t
dd|j�|�nt
dd	|j�|id
tj	6dtj6dtj
6d
tj6j|d��dSd|jddd�|jf}|j|dd�}|j�}|j|�}tj|�}|dkrgtd�}nt|�}|tj	kr�tjdtjtj|j���}	td�}
||
7}ntjdi|jd6|jd6|d6|d6|j|�d6|j�d6|d6d|d|�}t j!||d|d|�}|d =d!|j|d"<|j"|d#t#�|jd8_tj�d$ |_$|j%||�dS(%Nisdisabled addresstadmin_notiftuserackiR6s'%s: %s deleted after exhausting noticest	subscribes%%s: %s auto-unsubscribed [reason: %s]R\tBYUSERtBYADMINtUNKNOWNs
invalid values%s/%stconfirmtabsolutesfor unknown reasonss%d-%b-%Ys5 The last bounce received from you was dated %(date)ssdisabled.txtRSRt
confirmurlt
optionsurltpasswordRetreasonRgRfRtRusconfirm tSubjecttnoprecedencei(&RCRRGRtApprovedDeleteMemberR.tpend_confirmRRR\R	R<R{R|R}tgettGetScriptURLt
GetOptionsURLtGetRequestEmailtgetMemberLanguagetREASONSR
RDRIRERRJRRkR=tgetMemberPasswordRmRRlRrR?RRN(
RRRVR�R�R�treqaddrRgt	txtreasonRtextraRtRO((s]/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Bouncer.pyR]�sh				





	




c	Cs�|j�}|jdtd��}tj|tj|j��}|dkr]td�}nt|j��}t	j
|j�|j�|d|j�}|jd�t
|dtj|j��}|j|�|jt|��|j|�dS(NRus(no subject)s![No bounce details are available]Rgsmultipart/mixedRh(t
get_senderR�R
RtonelineRqRnRtnoticeRRlRmRoRRpRRr(	RROtmsgdatatetsenderRuR�tbmsgttxt((s]/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Bouncer.pyt
BounceMessage>s"		
	
N(
RRR1RtFalseR>RMR^R]R�(((s]/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Bouncer.pyRPs	^		 	A((( t__doc__tsysRDttypesRtemail.MIMETextRtemail.MIMEMessageRtMailmanRRRRRtMailman.ErrorsRtMailman.Logging.SyslogR	R
tEMPTYSTRINGREtdaysRR
R\R{R|R}R�RR(((s]/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Bouncer.pyt<module>s.		

Zerion Mini Shell 1.0