" + except mm_err.MMWebSubscribeRequiresConfirmation: + results = results + "You must send confirmation email in order to subscribe. Further directions will be sent to you at %s." % email + list.SendTextToUser(subject = 'Subscribing to %s' % list.real_name, + recipient = email, + sender = list.GetRequestEmail(), + text = ''' +In order to subscribe to this mailing list, you need to send a +confirming email. This is to prevent people from subscribing you to a +email list to which you don't want to be subscribed. To send +confirmation, reply to this mail, and put in the body: subscribe %s +''' % pw) + except mm_err.MMBadEmailError: + results = results + "Mailman won't accept the given email address as a valid address. (Does it have an @ in it???)
" + except mm_err.MMListNotReady: + results = results + "The list is not fully functional, and can not accept subscription requests.
"
+ except mm_err.MMNeedApproval, x:
+ results = results + "Subscription was refused because:
%s
Your request must be approved by the list admin. You will receive email informing you of the moderator's descision when he or she gets to your request.
" % x + except mm_err.MMHostileAddress: + results = results + "Your subscription is not allowed because the email address you gave is insecure.
" + except mm_err.MMAlreadyAMember: + results = results + "You are already subscribed!
" + except: + results = results + '''An unknown error occured.
+Please send mail to %s explaining +exactly what you did to get this error.
''' % (mm_cfg.MAILMAN_OWNER, + mm_cfg.MAILMAN_OWNER) + +PrintResults() -- cgit v1.2.3-70-g09d2