aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Handlers/CleanseDKIM.py
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2013-07-19 12:24:22 -0700
committerMark Sapiro <mark@msapiro.net>2013-07-19 12:24:22 -0700
commit037acd8e92f42f86f5086a570a23466c128fc480 (patch)
tree037f431c99cd1ee3b426e0825f36b7c4194d2684 /Mailman/Handlers/CleanseDKIM.py
parentca48001a003aa2f19602fac2b2037ec7b49a7061 (diff)
downloadmailman2-037acd8e92f42f86f5086a570a23466c128fc480.tar.gz
mailman2-037acd8e92f42f86f5086a570a23466c128fc480.tar.xz
mailman2-037acd8e92f42f86f5086a570a23466c128fc480.zip
Second cut at the author_is_list feature.
Diffstat (limited to 'Mailman/Handlers/CleanseDKIM.py')
-rw-r--r--Mailman/Handlers/CleanseDKIM.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Mailman/Handlers/CleanseDKIM.py b/Mailman/Handlers/CleanseDKIM.py
index 3a157890..c492a096 100644
--- a/Mailman/Handlers/CleanseDKIM.py
+++ b/Mailman/Handlers/CleanseDKIM.py
@@ -31,7 +31,9 @@ from Mailman import mm_cfg
def process(mlist, msg, msgdata):
if not mm_cfg.REMOVE_DKIM_HEADERS:
return
- if mm_cfg.REMOVE_DKIM_HEADERS == 1 and not mlist.author_is_list:
+ if (mm_cfg.ALLOW_AUTHOR_IS_LIST and
+ mm_cfg.REMOVE_DKIM_HEADERS == 1 and
+ not mlist.author_is_list):
return
del msg['domainkey-signature']
del msg['dkim-signature']