diff options
| author | Barry Warsaw | 2007-10-10 00:16:12 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2007-10-10 00:16:12 -0400 |
| commit | 15f9e73fdb96a145632e5916cc0073472c014c99 (patch) | |
| tree | d5bf1b81d4945e20586d17a5bd2002c8ce6d986c /Mailman/Handlers/CookHeaders.py | |
| parent | 28f41bc768390f11cf817534cca67a1683f235a7 (diff) | |
| download | mailman-15f9e73fdb96a145632e5916cc0073472c014c99.tar.gz mailman-15f9e73fdb96a145632e5916cc0073472c014c99.tar.zst mailman-15f9e73fdb96a145632e5916cc0073472c014c99.zip | |
Diffstat (limited to 'Mailman/Handlers/CookHeaders.py')
| -rw-r--r-- | Mailman/Handlers/CookHeaders.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Mailman/Handlers/CookHeaders.py b/Mailman/Handlers/CookHeaders.py index 24bf0e829..cb14853d5 100644 --- a/Mailman/Handlers/CookHeaders.py +++ b/Mailman/Handlers/CookHeaders.py @@ -29,7 +29,7 @@ from Mailman import Version from Mailman.app.archiving import get_base_archive_url from Mailman.configuration import config from Mailman.i18n import _ -from Mailman.interfaces import ReplyToMunging +from Mailman.interfaces import Personalization, ReplyToMunging CONTINUATION = ',\n\t' COMMASPACE = ', ' @@ -148,7 +148,7 @@ def process(mlist, msg, msgdata): # 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. - if (mlist.personalize == 2 and + if (mlist.personalize == Personalization.full and mlist.reply_goes_to_list <> ReplyToMunging.point_to_list and not mlist.anonymous_list): # Watch out for existing Cc headers, merge, and remove dups. Note @@ -158,7 +158,7 @@ def process(mlist, msg, msgdata): for pair in getaddresses(msg.get_all('cc', [])): add(pair) i18ndesc = uheader(mlist, mlist.description, 'Cc') - add((str(i18ndesc), mlist.GetListEmail())) + add((str(i18ndesc), mlist.posting_address)) 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 |
