summaryrefslogtreecommitdiff
path: root/Mailman/Gui/General.py
diff options
context:
space:
mode:
authorbwarsaw2002-03-11 18:53:11 +0000
committerbwarsaw2002-03-11 18:53:11 +0000
commit71b64220b303938ba859524bbb8a6c56ae1ddc10 (patch)
treedc20c8efda0681a7fad4da6d71c9215769f1f090 /Mailman/Gui/General.py
parent80c0cd98347b48c6bfe80ca29d8046963477c9b8 (diff)
downloadmailman-71b64220b303938ba859524bbb8a6c56ae1ddc10.tar.gz
mailman-71b64220b303938ba859524bbb8a6c56ae1ddc10.tar.zst
mailman-71b64220b303938ba859524bbb8a6c56ae1ddc10.zip
GetConfigInfo(): Change the description for first_strip_reply_to to
describe the intent that an existing Reply-To: can always be stripped. _setValue(): Check to make sure that the reply_to_address has a valid email address before we allow the value to be set.
Diffstat (limited to 'Mailman/Gui/General.py')
-rw-r--r--Mailman/Gui/General.py18
1 files changed, 13 insertions, 5 deletions
diff --git a/Mailman/Gui/General.py b/Mailman/Gui/General.py
index 64677fa41..06a80fb82 100644
--- a/Mailman/Gui/General.py
+++ b/Mailman/Gui/General.py
@@ -19,6 +19,7 @@
from Mailman import mm_cfg
from Mailman import Utils
+from Mailman import Errors
from Mailman.i18n import _
from Mailman.Gui.GUIBase import GUIBase
# BAW: bogus! This should be in a separate module (Utils?)
@@ -152,9 +153,10 @@ class General(GUIBase):
_('''<tt>Reply-To:</tt> header munging'''),
('first_strip_reply_to', mm_cfg.Radio, (_('No'), _('Yes')), 0,
- _('''Before adding a list-specific <tt>Reply-To:</tt> header,
- should any existing <tt>Reply-To:</tt> field be stripped from
- the message?''')),
+ _('''Should any existing <tt>Reply-To:</tt> header found in the
+ original message be stripped? If so, this will be done
+ regardless of whether an explict <tt>Reply-To:</tt> header is
+ added by Mailman or not.''')),
('reply_goes_to_list', mm_cfg.Radio,
(_('Poster'), _('This list'), _('Explicit address')), 0,
@@ -385,8 +387,7 @@ class General(GUIBase):
# These values can't differ by other than case
doc.addError(_("""<p><b>real_name</b> attribute not
changed! It must differ from the list's name by case
- only.<p>"""),
- tag=_('Error: '))
+ only.<p>"""))
elif property == 'new_member_options':
newopts = 0
for opt in OPTIONS:
@@ -394,5 +395,12 @@ class General(GUIBase):
if opt in val:
newopts |= bitfield
mlist.new_member_options = newopts
+ elif property == 'reply_to_address':
+ try:
+ Utils.ValidateEmail(val)
+ except Errors.EmailAddressError:
+ doc.addError(_("""<p><b>reply_to_address</b> does not have a
+ valid email address! Its valid will not be changed."""))
+ mlist.reply_to_address = val
else:
GUIBase._setValue(self, mlist, property, val, doc)