summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2002-04-11 04:21:45 +0000
committerbwarsaw2002-04-11 04:21:45 +0000
commit9cef2c262e896ba249ddb8688617218f5b00b8d5 (patch)
treef109b6879a319624092e5edaaf366fb82a454dcd
parent41068c9be7b451b4a85b107be79bf809c7f2e479 (diff)
downloadmailman-9cef2c262e896ba249ddb8688617218f5b00b8d5.tar.gz
mailman-9cef2c262e896ba249ddb8688617218f5b00b8d5.tar.zst
mailman-9cef2c262e896ba249ddb8688617218f5b00b8d5.zip
CheckValues(): It's possible that some how the following bogus
situation got set: there's an empty (after stripping) reply_to_address, and reply_goes_to_list is set to "explicit address". This isn't a legal combination (but could have gotten this way through legacy settings or bad bin/withlist manners), so reset both values.
-rw-r--r--Mailman/MailList.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py
index d147f8b40..d54dcdadb 100644
--- a/Mailman/MailList.py
+++ b/Mailman/MailList.py
@@ -606,6 +606,17 @@ class MailList(MailCommandHandler, HTMLFormatter, Deliverer, ListAdmin,
self.web_page_url = mm_cfg.DEFAULT_URL
if self.web_page_url and self.web_page_url[-1] <> '/':
self.web_page_url = self.web_page_url + '/'
+ # Legacy reply_to_address could be an illegal value. We now verify
+ # upon setting and don't check it at the point of use.
+ try:
+ if self.reply_to_address.strip() and self.reply_goes_to_list:
+ Utils.ValidateEmail(self.reply_to_address)
+ except Errors.EmailAddressError:
+ syslog('error', 'Bad reply_to_address "%s" cleared for list: %s',
+ self.reply_to_address, self.internal_name())
+ self.reply_to_address = ''
+ self.reply_goes_to_list = 0
+
#