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

ó
äFÑ^c@s:dZddlZddlZddlZddlZddlZddlZddlZddlZddl	m
Z
ddl	mZddl	mZddl	m
Z
ddl	mZddl	mZdd	lmZdd
lTddlmZdZd
ZdZejZeje
jƒd„Zd„Zd„ZdS(s;Process subscription or roster requests from listinfo form.iÿÿÿÿN(tmm_cfg(tUtils(tMailList(tErrors(ti18n(tMessage(tUserDesc(t*(tsyslogt/s

<p>s, c	Cs&tƒ}|jtjƒtjƒ}|so|jtdtdƒƒƒ|jt	tdƒƒƒ|j
ƒGHdS|djƒ}ytj|ddƒ}Wn~t
jk
r}tj|ƒ}|jtdtdƒƒƒ|jt	tdƒƒƒdGH|j
ƒGHtdd	||ƒdSXtjƒ}y|jd
dƒ}WnWtk
r”|jtdtdƒƒƒ|jt	tdƒƒƒd
GH|j
ƒGHdSXtj|ƒs°|j}ntj|ƒ|j|ƒ|d„}|jƒz4tjtj|ƒt||||ƒ|jƒWd|jƒXdS(NitErrorsInvalid options to CGI scriptitlocks&No such list <em>%(safelistname)s</em>sStatus: 404 Not Foundterrors!subscribe: No such list "%s": %s
tlanguagetsInvalid options to CGI script.sStatus: 400 Bad RequestcSs|jƒtjdƒdS(Ni(tUnlocktsystexit(tsignumtframetmlist((s;/usr/local/cpanel/3rdparty/mailman/Mailman/Cgi/subscribe.pytsigterm_handlerds
(tDocumenttset_languageRtDEFAULT_SERVER_LANGUAGERt
GetPathPiecestAddItemtHeadert_tBoldtFormattlowerRRtMMListErrortwebsafeRtcgitFieldStoragetgetfirstt	TypeErrort
IsLanguagetpreferred_languageRtLocktsignaltSIGTERMtprocess_formtSaveR(	tdoctpartstlistnameRtetsafelistnametcgidataR
R((s;/usr/local/cpanel/3rdparty/mailman/Mailman/Cgi/subscribe.pytmain1sN	



c#Csm|jƒ}|j}g}|jddƒjƒ}|sO|jtdƒƒn|jddƒ}tj||ƒ}tj	j
dtj	j
dtj	j
ddƒƒƒ}	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reCAPTCHA validation failed: %(e_codes)ss.reCAPTCHA could not be validated: %(e_reason)st.iit:tsub_form_tokens*The form is too old.  Please GET it again.sDPlease take a few seconds to fill out the form before submitting it.s3The hidden token didn't match.  Did your IP change?sAThere was no hidden token in your submission or it was corrupted.s+You must GET the form before submitting it.tcaptcha_answers6This was not the right answer to the CAPTCHA question.tmischiefs Attempt to self subscribe %s: %ss'You may not subscribe a list to itself!tpwspw-confs.If you supply a password, you must confirm it.sYour passwords did not match.tdigestsVYour subscription request has been received, and will soon be acted upon.
Depending on the configuration of this mailing list, your subscription request
may have to be first confirmed by you via email, or approved by the list
moderator.  If confirmation is required, you will soon get a confirmation
email which contains further instructions.s®The email address you supplied is banned from this
        mailing list.  If you think this restriction is erroneous, please
        contact the list owners at %(listowner)s.sLThe email address you supplied is not valid.  (E.g. it must contain an
`@'.)sPYour subscription is not allowed because the email address you gave is
insecure.sñConfirmation from your email address is required, to prevent anyone from
subscribing you without permission.  Instructions are being sent to you at
%(email)s.  Please note your subscription will not start until you confirm
your subscription.sÎYour subscription request was deferred because %(x)s.  Your request has been
forwarded to the list moderator.  You will receive email informing you of the
moderator's decision when they get to your request.s4You already have a subscription pending confirmationsYou are already subscribed.sMailman privacy alerts´An attempt was made to subscribe your address to the mailing list
%(listaddr)s.  You are already subscribed to this mailing list.

Note that the list membership is not public, so it is possible that a bad
person was trying to probe the list for its membership.  This would be a
privacy violation if we let them do this, but we didn't.

If you submitted the subscription request and forgot that you were already
subscribed to the list, then you can ignore this message.  If you suspect that
an attempt is being made to covertly discover whether you are a member of this
list, and you are worried about your privacy, then feel free to send a message
to the list administrator at %(listowner)s.
tlangs+This list does not support digest delivery.s(This list only supports digest delivery.sGYou have been successfully subscribed to the %(realname)s mailing list.(Kt
GetOwnerEmailt	real_nameR$tstriptappendRRtcanonstrtostenvirontgetRtRECAPTCHA_SECRET_KEYturllib2tRequestturllibt	urlencodetgetvalueturlopentjsontloadtcloset
COMMASPACEtjointURLErrortreasontSUBSCRIBE_FORM_SECRETtintttimetfindtrsplittsplitt
ValueErrortsha_newt
internal_namet	hexdigestt
FORM_LIFETIMEtSUBSCRIBE_FORM_MIN_TIMEt
isinstancetCAPTCHAStdicttcaptcha_verifytGetListEmailRtMakeRandomPasswordR%tdigest_is_defaultt
digestablet
nondigestablet
print_resultstERRORSEPtprivate_rosterRt	AddMemberRtMembershipIsBannedtMMBadEmailErrortMMHostileAddresstMMSubscribeNeedsConfirmationtMMNeedApprovaltstrtMMAlreadyPendingtMMAlreadyAMembertgetMemberLanguageRtget_translationRRtUserNotificationtgetMemberCPAddresstGetBouncesEmailtset_translationtsendtMMCantDigestErrortMMMustDigestError(#RR-R2RFt	listownertrealnametresultsR4R5tremotetrequestthttpresptcaptcha_responsete_codesR0te_reasontnowtremote1tftimetfcaptcha_idxtfhashtthenttokenRBtpasswordt	confirmedt
digestflagREtprivacy_resultstuserdesctxtlistaddrtmlangtotranstmsg((s;/usr/local/cpanel/3rdparty/mailman/Mailman/Cgi/subscribe.pyR+xs				


		

(
	
							
		
		
		cCsSd|_|j|ƒ}||d<|jd||ƒ}|j|ƒ|jƒGHdS(Nis<mm-results>ssubscribe.html(t
suppress_headtGetStandardReplacementst	ParseTagsRR(RR‰R-RFtreplacementstoutput((s;/usr/local/cpanel/3rdparty/mailman/Mailman/Cgi/subscribe.pyRr^s	

(t__doc__RRLR"R_R)RRRPRVtMailmanRRRRRRtMailman.UserDescRtMailman.htmlformattMailman.Logging.SyslogRtSLASHRsRYRRRR3R+Rr(((s;/usr/local/cpanel/3rdparty/mailman/Mailman/Cgi/subscribe.pyt<module>s2
		G	æ
Back to Directory File Manager