summaryrefslogtreecommitdiff
path: root/Mailman/Deliverer.py
diff options
context:
space:
mode:
authorklm1998-04-14 21:43:11 +0000
committerklm1998-04-14 21:43:11 +0000
commit46e9f93a9abfd95327eb0841cd7496c124eadf20 (patch)
tree52862a67462b5be1cf2f6beef8c4eb6e0124abf7 /Mailman/Deliverer.py
parentcdbdb51c6073647027036f49fe54b9d2bc510a46 (diff)
downloadmailman-46e9f93a9abfd95327eb0841cd7496c124eadf20.tar.gz
mailman-46e9f93a9abfd95327eb0841cd7496c124eadf20.tar.zst
mailman-46e9f93a9abfd95327eb0841cd7496c124eadf20.zip
Diffstat (limited to 'Mailman/Deliverer.py')
-rw-r--r--Mailman/Deliverer.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/Mailman/Deliverer.py b/Mailman/Deliverer.py
index 521cb1ccc..66c4b5fe6 100644
--- a/Mailman/Deliverer.py
+++ b/Mailman/Deliverer.py
@@ -1,6 +1,6 @@
"""Mixin class with message delivery routines."""
-__version__ = "$Revision: 453 $"
+__version__ = "$Revision: 456 $"
import string, os, sys, tempfile
@@ -122,17 +122,15 @@ class Deliverer:
msg.headers.append('To: %s\n' % self.GetListEmail())
else:
tempfile.template = tmpfile_prefix + 'mailman.'
+ if self.reply_goes_to_list:
+ msg.headers.append('Reply-To: %s\n' % self.GetListEmail())
msg.headers.append('Errors-To: %s\n' % self.GetAdminEmail())
tmp_file_name = tempfile.mktemp()
tmp_file = open(tmp_file_name, 'w+')
+ tmp_file.write(string.join(msg.headers,'') + '\n')
- tmp_file.write(string.join(msg.headers,''))
- # If replys don't go to the list, then they should go to the
- # real sender
- if self.reply_goes_to_list:
- tmp_file.write('Reply-To: %s\n\n' % self.GetListEmail())
- if header:
+ if header: # The *body* header:
tmp_file.write(header + '\n')
tmp_file.write(self.QuotePeriods(msg.body))
if footer: