summaryrefslogtreecommitdiff
path: root/src/mailman/mta/base.py
diff options
context:
space:
mode:
authorBarry Warsaw2010-06-29 22:11:09 -0400
committerBarry Warsaw2010-06-29 22:11:09 -0400
commitdb19156330bf6bbca9a6e13c5d85676e43be3b29 (patch)
tree792f46e7cf0e5cc3c1ac3a693915cf4c4455168d /src/mailman/mta/base.py
parentb3e874703bce97c121eb97dd9776da15a8b90070 (diff)
downloadmailman-db19156330bf6bbca9a6e13c5d85676e43be3b29.tar.gz
mailman-db19156330bf6bbca9a6e13c5d85676e43be3b29.tar.zst
mailman-db19156330bf6bbca9a6e13c5d85676e43be3b29.zip
Diffstat (limited to 'src/mailman/mta/base.py')
-rw-r--r--src/mailman/mta/base.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/mailman/mta/base.py b/src/mailman/mta/base.py
index 7b254fd3e..2f1470d56 100644
--- a/src/mailman/mta/base.py
+++ b/src/mailman/mta/base.py
@@ -67,18 +67,8 @@ class BaseDelivery:
:return: delivery failures as defined by `smtplib.SMTP.sendmail`
:rtype: dictionary
"""
- # Blow away any existing Sender and Errors-To headers and substitute
- # our own. Our interpretation of RFC 5322 $3.6.2 is that Mailman is
- # the "agent responsible for actual transmission of the message"
- # because what we send to list members is different than what the
- # original author sent. RFC 2076 says Errors-To is "non-standard,
- # discouraged" but we include it for historical purposes.
- sender = self._get_sender(mlist, msg, msgdata)
- del msg['sender']
- del msg['errors-to']
- msg['Sender'] = sender
- msg['Errors-To'] = sender
# Do the actual sending.
+ sender = self._get_sender(mlist, msg, msgdata)
message_id = msg['message-id']
try:
refused = self._connection.sendmail(