Viewing File: /usr/local/cpanel/3rdparty/mailman/Mailman/Deliverer.pyc

ó
)¿Úhc@sädZddlmZddlmZddlmZddlmZddlmZddlm	Z	ddlm
Z
dd	lmZdd
lm
Z
e
jZyeefWnek
rÌdZdZnXd
dd„ƒYZdS(s+Mixin class with message delivery routines.iÿÿÿÿ(tMIMEText(tMIMEMessage(tmm_cfg(tErrors(tUtils(tMessage(ti18n(tPending(tsyslogiit	DeliverercBsJeZdd„Zd„Zd„Zdded„Zd„Zd„Z	RS(tcCs†|j|ƒ}tj|ƒ|jr>tj|jƒd}nd}|jrt|j|ƒ}tjtdƒƒ}nd}|tj	di	|j
d6|jd6|d6|d6|jƒd	6|j
d
dtƒd6|j|dtƒd
6|d6|j|ƒd6d|d|ƒ7}|r#tdƒ}	nd}	|j
}
tj|j|ƒ|jƒtdƒ||ƒ}d|d<|j|dtjƒdS(Ns
R
s Note: Since this is a list of mailing lists, administrative
notices like the password reminder will be sent to
your membership administrative address, %(addr)s.ssubscribeack.txtt	real_namet	host_nametwelcometumbrellat	emailaddrtlistinfotabsolutetlistinfo_urlt
optionsurltpasswordtusertlangtmlists (Digest mode)s5Welcome to the "%(realname)s" mailing list%(digmode)styessX-No-Archivetverp(tgetMemberLanguageRtset_languagetwelcome_msgRtwrapt
umbrella_listtGetMemberAdminEmailt_tmaketextRRtGetListEmailtGetScriptURLtTruet
GetOptionsURLtgetMemberCPAddressRtUserNotificationtGetRequestEmailtsendRtVERP_PERSONALIZED_DELIVERIES(tselftnameRtdigestttexttpluserR
taddrRtdigmodetrealnametmsg((s7/usr/local/cpanel/3rdparty/mailman/Mailman/Deliverer.pytSendSubscribeAck+s@
				


		
cCsl|j}tj|ƒtj|j|ƒ|jƒtdƒtj	|j
ƒ|ƒ}|j|dtj
ƒdS(Ns=You have been unsubscribed from the %(realname)s mailing listR(RRRRR'RtGetBouncesEmailR RRtgoodbye_msgR)RR*(R+R0RR2R3((s7/usr/local/cpanel/3rdparty/mailman/Mailman/Deliverer.pytSendUnsubscribeAckTs	
	cCséd|j|jf}|jƒ}|jƒ}|j|ƒsCt‚|j|ƒsÈtdd||jƒƒ|j	ƒ}|sŠ|j
ƒnz$|j|tj
ƒƒ|jƒWd|sÄ|jƒnXn|j|ƒ}|j|ƒ}tdƒ}|j|ƒ}	tj|	ƒ}
|j|ƒ}t||
dƒj|
dƒ}tjdi|d6|jd6|jƒd	6|d
6|j|dtƒd6|d
6|jƒd6d|	d|ƒ}tj|||||	ƒ}
d|
d<|
j|dtj ƒdS(Ns%s@%sterrors(User %s had a false password for list %ss&%(listfullname)s mailing list remindertreplacesuserpass.txtRtlistnamet
fqdn_lnameRRtoptions_urltrequestaddrt	owneraddrRRRsX-No-ArchiveR(!RRR(R5tisMembertAssertionErrortgetMemberPasswordRt
internal_nametLockedtLocktsetMemberPasswordRtMakeRandomPasswordtSavetUnlockR&RR Rt
GetCharSettunicodetencodeR!R"R%R$t
GetOwnerEmailRR'R)RR*(R+RtlistfullnameR=t	adminaddrt	waslockedtcpusert	recipienttsubjectRtcsetRR.R3((s7/usr/local/cpanel/3rdparty/mailman/Mailman/Deliverer.pytMailUserPassword]sH	



	
cCs¹|dkrtdƒ}n|dkr6tdƒ}nttj|ƒdtj|jƒƒ}t|ƒ}tj	||d|ƒ}|j
dƒ|j|ƒ|j|ƒ|j|ƒdS(NsNo reason givens(no subject)t_charsetttomoderatorssmultipart/mixed(
tNoneR RRRRItpreferred_languageRRtOwnerNotificationtset_typetattachR)(R+R3R.RRRVt
attachmenttnotice((s7/usr/local/cpanel/3rdparty/mailman/Mailman/Deliverer.pytForwardMessages


cCs|jƒ}tdd|||ƒtj|tdƒtjtdƒƒƒ}|j|ƒy&ddlm	}||dt
ƒ}Wntjk
r–dSXt
jƒ}t
j|jƒz;tj|tdƒtjtdƒƒƒ}|j|ƒWdt
j|ƒXdS(	Ntmischiefs(%s was invited to %s but confirmed to %ss%Hostile subscription attempt detectedsÙ%(address)s was invited to a different mailing
list, but in a deliberate malicious attempt they tried to confirm the
invitation to your list.  We just thought you'd like to know.  No further
action by you is required.iÿÿÿÿ(tMailListtlocksÒYou invited %(address)s to your list, but in a
deliberate malicious attempt, they tried to confirm the invitation to a
different list.  We just thought you'd like to know.  No further action by you
is required.(RBRRRYR RRR)tMailman.MailListR`tFalseRtMMListErrorRtget_translationRRXtset_translation(R+R:taddresstselfnameR3R`Rtotrans((s7/usr/local/cpanel/3rdparty/mailman/Mailman/Deliverer.pytSendHostileSubscriptionNoticežs0	
		
		c
Cs†t|jƒ}i|d6|d6|j|dtƒd6|jƒd6}tjd|d|j|ƒd|ƒ}|jt	j
||ƒ}i|d	d
6|d6}dtj||j
f}|j|ƒ}	tjƒ}
tj|	ƒztd
ƒ}Wdtj|
ƒXtj|||d|	ƒ}|jdƒt|dtj|	ƒƒ}|j|ƒ|jt|ƒƒ|j|d|dtd|ƒdS(NR:RgRRR>s	probe.txtRRs-bouncestbouncesttokens%s@%ss'%(listname)s mailing list probe messagesmultipart/mixedRUt	envsenderRtprobe_token(tstrRR%R$RLRR!Rtpend_newRtPROBE_BOUNCERtVERP_PROBE_FORMATRRReRR RfRR'RZRRIR[RR)Rc(
R+tmemberR3R:tdR.Rlt	probedictt	probeaddrtulangRiRRtouter((s7/usr/local/cpanel/3rdparty/mailman/Mailman/Deliverer.pyt	sendProbeÄs6
	



	

N(
t__name__t
__module__R4R7RTRWR$R^RjRy(((s7/usr/local/cpanel/3rdparty/mailman/Mailman/Deliverer.pyR	*s)			0	&N((t__doc__temail.MIMETextRtemail.MIMEMessageRtMailmanRRRRRRtMailman.Logging.SyslogRR R$Rct	NameErrorR	(((s7/usr/local/cpanel/3rdparty/mailman/Mailman/Deliverer.pyt<module>s 	


Back to Directory File Manager