aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Handlers/CookHeaders.py
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2013-07-18 20:49:20 -0700
committerMark Sapiro <mark@msapiro.net>2013-07-18 20:49:20 -0700
commit9b8cf403719c083270b2d51a0aac22e120355522 (patch)
tree3aff142848d1c3d60aa044e29c6d1c549174fb91 /Mailman/Handlers/CookHeaders.py
parentcb2733e029d419904f0fc488f5989beb3aa3ce71 (diff)
downloadmailman2-9b8cf403719c083270b2d51a0aac22e120355522.tar.gz
mailman2-9b8cf403719c083270b2d51a0aac22e120355522.tar.xz
mailman2-9b8cf403719c083270b2d51a0aac22e120355522.zip
First cut at the author_is_list feature.
Diffstat (limited to '')
-rwxr-xr-xMailman/Handlers/CookHeaders.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Mailman/Handlers/CookHeaders.py b/Mailman/Handlers/CookHeaders.py
index a2096172..7455dcc6 100755
--- a/Mailman/Handlers/CookHeaders.py
+++ b/Mailman/Handlers/CookHeaders.py
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2011 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2013 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
@@ -157,9 +157,10 @@ def process(mlist, msg, msgdata):
# Cc header. BAW: should we force it into a Reply-To header in the
# above code?
# Also skip Cc if this is an anonymous list as list posting address
- # is already in From and Reply-To in this case.
+ # 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.anonymous_list and not mlist.author_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 = []