Update of /cvsroot/mailman/mailman/Mailman
In directory sc8-pr-cvs1:/tmp/cvs-serv19732
Modified Files:
Tag: Release_2_1-maint
MailList.py
Log Message:
Create(): Take an optional emailhost name and use that to calculate
the valid postingaddr. If not given (the default), use
DEFAULT_EMAIL_HOST as before.
Index: MailList.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/MailList.py,v
retrieving revision 2.100.2.7
retrieving revision 2.100.2.8
diff -u -d -r2.100.2.7 -r2.100.2.8
--- MailList.py 21 Nov 2003 02:52:04 -0000 2.100.2.7
+++ MailList.py 24 Nov 2003 23:52:46 -0000 2.100.2.8
@@ -432,7 +432,8 @@
#
# List creation
#
- def Create(self, name, admin, crypted_password, langs=None):
+ def Create(self, name, admin, crypted_password,
+ langs=None, emailhost=None):
if Utils.list_exists(name):
raise Errors.MMListAlreadyExistsError, name
# Validate what will be the list's posting address. If that's
@@ -440,7 +441,9 @@
# part doesn't really matter, since that better already be valid.
# However, most scripts already catch MMBadEmailError as exceptions on
# the admin's email address, so transform the exception.
- postingaddr = '[EMAIL PROTECTED]' % (name, mm_cfg.DEFAULT_EMAIL_HOST)
+ if emailhost is None:
+ emailhost = mm_cfg.DEFAULT_EMAIL_HOST
+ postingaddr = '[EMAIL PROTECTED]' % (name, emailhost)
try:
Utils.ValidateEmail(postingaddr)
except Errors.MMBadEmailError:
_______________________________________________
Mailman-checkins mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-checkins