~tgc/mailman/2.1-da

« back to all changes in this revision

Viewing changes to Mailman/Handlers/CleanseDKIM.py

  • Committer: Mark Sapiro
  • Date: 2013-09-28 23:08:15 UTC
  • Revision ID: mark@msapiro.net-20130928230815-86m44evqe74e4b4e
Tags: 2.1.16rc3
Renamed author_is_list to from_is_list.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
def process(mlist, msg, msgdata):
32
32
    if not mm_cfg.REMOVE_DKIM_HEADERS:
33
33
        return
34
 
    if (mm_cfg.ALLOW_AUTHOR_IS_LIST and
 
34
    if (mm_cfg.ALLOW_FROM_IS_LIST and
35
35
            mm_cfg.REMOVE_DKIM_HEADERS == 1 and
36
 
            mlist.author_is_list != 1):
 
36
            mlist.from_is_list != 1):
37
37
        return
38
38
    del msg['domainkey-signature']
39
39
    del msg['dkim-signature']