diff options
author | Mark Sapiro <msapiro@value.net> | 2014-04-15 12:59:48 -0700 |
---|---|---|
committer | Mark Sapiro <msapiro@value.net> | 2014-04-15 12:59:48 -0700 |
commit | 0d9b1cce5e97fe4095fe2cb72465129437d83b5a (patch) | |
tree | 91ac47389801b2c5c5bb67bbae8a5f45f4f05b0b /Mailman/Handlers/WrapMessage.py | |
parent | 192caa4943eb87e466229736eccefd4381042fd7 (diff) | |
parent | f00ecb3432578156b7f9df2ae33ad5f840e20de6 (diff) | |
download | mailman2-0d9b1cce5e97fe4095fe2cb72465129437d83b5a.tar.gz mailman2-0d9b1cce5e97fe4095fe2cb72465129437d83b5a.tar.xz mailman2-0d9b1cce5e97fe4095fe2cb72465129437d83b5a.zip |
Added and modified various options regarding DMARC. See the NEWS file.
Diffstat (limited to 'Mailman/Handlers/WrapMessage.py')
-rw-r--r-- | Mailman/Handlers/WrapMessage.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Mailman/Handlers/WrapMessage.py b/Mailman/Handlers/WrapMessage.py index 68c89ff2..de981dd6 100644 --- a/Mailman/Handlers/WrapMessage.py +++ b/Mailman/Handlers/WrapMessage.py @@ -1,4 +1,4 @@ -# Copyright (C) 2013 by the Free Software Foundation, Inc. +# Copyright (C) 2013-2014 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -35,7 +35,8 @@ KEEPERS = ('to', def process(mlist, msg, msgdata): - if not mm_cfg.ALLOW_FROM_IS_LIST or mlist.from_is_list != 2: + if not (msgdata.get('from_is_list') == 2 or + (mlist.from_is_list == 2 and msgdata.get('from_is_list') == 0)): return # There are various headers in msg that we don't want, so we basically |