diff options
author | Mark Sapiro <mark@msapiro.net> | 2013-09-28 16:08:15 -0700 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2013-09-28 16:08:15 -0700 |
commit | 2d8a570e69262584f838526a01df91a3c37de3ad (patch) | |
tree | fce426b9bca5ae0d1d87be1d3b67845fc2c06680 /Mailman/Handlers | |
parent | f85010a770c8bed07dce85ccaf50425fa42acc0f (diff) | |
download | mailman2-2d8a570e69262584f838526a01df91a3c37de3ad.tar.gz mailman2-2d8a570e69262584f838526a01df91a3c37de3ad.tar.xz mailman2-2d8a570e69262584f838526a01df91a3c37de3ad.zip |
Renamed author_is_list to from_is_list.
Diffstat (limited to 'Mailman/Handlers')
-rw-r--r-- | Mailman/Handlers/CleanseDKIM.py | 4 | ||||
-rwxr-xr-x | Mailman/Handlers/CookHeaders.py | 12 | ||||
-rw-r--r-- | Mailman/Handlers/WrapMessage.py | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/Mailman/Handlers/CleanseDKIM.py b/Mailman/Handlers/CleanseDKIM.py index 809bae9b..0df2d97f 100644 --- a/Mailman/Handlers/CleanseDKIM.py +++ b/Mailman/Handlers/CleanseDKIM.py @@ -31,9 +31,9 @@ from Mailman import mm_cfg def process(mlist, msg, msgdata): if not mm_cfg.REMOVE_DKIM_HEADERS: return - if (mm_cfg.ALLOW_AUTHOR_IS_LIST and + if (mm_cfg.ALLOW_FROM_IS_LIST and mm_cfg.REMOVE_DKIM_HEADERS == 1 and - mlist.author_is_list != 1): + mlist.from_is_list != 1): return del msg['domainkey-signature'] del msg['dkim-signature'] diff --git a/Mailman/Handlers/CookHeaders.py b/Mailman/Handlers/CookHeaders.py index 96862851..150b4922 100755 --- a/Mailman/Handlers/CookHeaders.py +++ b/Mailman/Handlers/CookHeaders.py @@ -65,7 +65,7 @@ def uheader(mlist, s, header_name=None, continuation_ws='\t', maxlinelen=None): return Header(s, charset, maxlinelen, header_name, continuation_ws) def change_header(name, value, mlist, msg, msgdata, delete=True, repl=True): - if mm_cfg.ALLOW_AUTHOR_IS_LIST and mlist.author_is_list == 2: + if mm_cfg.ALLOW_FROM_IS_LIST and mlist.from_is_list == 2: msgdata.setdefault('add_header', {})[name] = value elif repl or not msg.has_key(name): if delete: @@ -116,7 +116,7 @@ def process(mlist, msg, msgdata): change_header('Precedence', 'list', mlist, msg, msgdata, repl=False) # Do we change the from so the list takes ownership of the email - if mm_cfg.ALLOW_AUTHOR_IS_LIST and mlist.author_is_list: + if mm_cfg.ALLOW_FROM_IS_LIST and mlist.from_is_list: realname, email = parseaddr(msg['from']) replies = getaddresses(msg.get('reply-to', '')) reply_addrs = [x[1].lower() for x in replies] @@ -132,7 +132,7 @@ def process(mlist, msg, msgdata): formataddr(('%s via %s' % (realname, mlist.real_name), mlist.GetListEmail())), mlist, msg, msgdata) - if mlist.author_is_list != 2: + if mlist.from_is_list != 2: del msg['sender'] #MAS ?? mlist.include_sender_header = 0 # Reply-To: munging. Do not do this if the message is "fast tracked", @@ -190,8 +190,8 @@ def process(mlist, msg, msgdata): # is already in From and Reply-To in this case and similarly for # an 'author is list' list. if mlist.personalize == 2 and mlist.reply_goes_to_list <> 1 \ - and not mlist.anonymous_list and not (mlist.author_is_list and - mm_cfg.ALLOW_AUTHOR_IS_LIST): + and not mlist.anonymous_list and not (mlist.from_is_list and + mm_cfg.ALLOW_FROM_IS_LIST): # Watch out for existing Cc headers, merge, and remove dups. Note # that RFC 2822 says only zero or one Cc header is allowed. new = [] @@ -202,7 +202,7 @@ def process(mlist, msg, msgdata): add((str(i18ndesc), mlist.GetListEmail())) # We don't worry about what AvoidDuplicates may have done with a # Cc: header or using change_header here since we never get here - # if author_is_list is allowed and True. + # if from_is_list is allowed and True. del msg['Cc'] msg['Cc'] = COMMASPACE.join([formataddr(pair) for pair in new]) # Add list-specific headers as defined in RFC 2369 and RFC 2919, but only diff --git a/Mailman/Handlers/WrapMessage.py b/Mailman/Handlers/WrapMessage.py index 350a8a81..68c89ff2 100644 --- a/Mailman/Handlers/WrapMessage.py +++ b/Mailman/Handlers/WrapMessage.py @@ -35,7 +35,7 @@ KEEPERS = ('to', def process(mlist, msg, msgdata): - if not mm_cfg.ALLOW_AUTHOR_IS_LIST or mlist.author_is_list != 2: + if not mm_cfg.ALLOW_FROM_IS_LIST or mlist.from_is_list != 2: return # There are various headers in msg that we don't want, so we basically |