diff options
| author | Barry Warsaw | 2009-03-03 10:15:42 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-03-03 10:15:42 -0500 |
| commit | 542a15b5f973565ecca533c9783f44a8bc37a810 (patch) | |
| tree | 904c59465d913a4f80e63cba8f1ec8982509f3ee /src/mailman/pipeline/cook_headers.py | |
| parent | f3ee1ed7d9198d79f7feaf6fb3bb5b6e5ae4bd38 (diff) | |
| download | mailman-542a15b5f973565ecca533c9783f44a8bc37a810.tar.gz mailman-542a15b5f973565ecca533c9783f44a8bc37a810.tar.zst mailman-542a15b5f973565ecca533c9783f44a8bc37a810.zip | |
Diffstat (limited to 'src/mailman/pipeline/cook_headers.py')
| -rw-r--r-- | src/mailman/pipeline/cook_headers.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mailman/pipeline/cook_headers.py b/src/mailman/pipeline/cook_headers.py index 4d3e12eb1..3c67d0193 100644 --- a/src/mailman/pipeline/cook_headers.py +++ b/src/mailman/pipeline/cook_headers.py @@ -179,17 +179,16 @@ def process(mlist, msg, msgdata): if msgdata.get('_nolist') or not mlist.include_rfc2369_headers: return # This will act like an email address for purposes of formataddr() - listid = '{0}.{1}'.format(mlist.list_name, mlist.host_name) cset = mlist.preferred_language.charset if mlist.description: # Don't wrap the header since here we just want to get it properly RFC # 2047 encoded. i18ndesc = uheader(mlist, mlist.description, 'List-Id', maxlinelen=998) - listid_h = formataddr((str(i18ndesc), listid)) + listid_h = formataddr((str(i18ndesc), mlist.list_id)) else: # without desc we need to ensure the MUST brackets - listid_h = '<{0}>'.format(listid) - # We always add a List-ID: header. + listid_h = '<{0}>'.format(mlist.list_id) + # No other agent should add a List-ID header except Mailman. del msg['list-id'] msg['List-Id'] = listid_h # For internally crafted messages, we also add a (nonstandard), |
