diff options
author | Mark Sapiro <mark@msapiro.net> | 2013-07-19 12:24:22 -0700 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2013-07-19 12:24:22 -0700 |
commit | 037acd8e92f42f86f5086a570a23466c128fc480 (patch) | |
tree | 037f431c99cd1ee3b426e0825f36b7c4194d2684 /Mailman/Gui | |
parent | ca48001a003aa2f19602fac2b2037ec7b49a7061 (diff) | |
download | mailman2-037acd8e92f42f86f5086a570a23466c128fc480.tar.gz mailman2-037acd8e92f42f86f5086a570a23466c128fc480.tar.xz mailman2-037acd8e92f42f86f5086a570a23466c128fc480.zip |
Second cut at the author_is_list feature.
Diffstat (limited to 'Mailman/Gui')
-rw-r--r-- | Mailman/Gui/General.py | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/Mailman/Gui/General.py b/Mailman/Gui/General.py index 53f2e908..d28fe311 100644 --- a/Mailman/Gui/General.py +++ b/Mailman/Gui/General.py @@ -153,15 +153,21 @@ class General(GUIBase): directive. eg.; [listname %%d] -> [listname 123] (listname %%05d) -> (listname 00123) """)), + ] - ('author_is_list', mm_cfg.Radio, (_('No'), _('Yes')), 0, - _("""Replace the sender with the list address to conform with - policies like ADSP and DMARC. It replaces the poster's address - in the From: header with the list address and adds the poster to - the Reply-To: header, but the anonymous_list and Reply-To: header - munging settings below take priority. If setting this to Yes, - it is advised to set the MTA to DKIM sign all emails.""")), - + if mm_cfg.ALLOW_AUTHOR_IS_LIST: + rtn.append( + ('author_is_list', mm_cfg.Radio, (_('No'), _('Yes')), 0, + _("""Replace the sender with the list address to conform with + policies like ADSP and DMARC. It replaces the poster's + address in the From: header with the list address and adds the + poster to the Reply-To: header, but the anonymous_list and + Reply-To: header munging settings below take priority. If + setting this to Yes, it is advised to set the MTA to DKIM sign + all emails.""")) + ) + + rtn.extend([ ('anonymous_list', mm_cfg.Radio, (_('No'), _('Yes')), 0, _("""Hide the sender of a message, replacing it with the list address (Removes From, Sender and Reply-To fields)""")), @@ -382,7 +388,7 @@ class General(GUIBase): useful for selecting among alternative names of a host that has multiple addresses.""")), - ] + ]) if mm_cfg.ALLOW_RFC2369_OVERRIDES: rtn.append( |