summaryrefslogtreecommitdiff
path: root/src/mailman/mta
diff options
context:
space:
mode:
authorBarry Warsaw2009-02-09 22:19:18 -0500
committerBarry Warsaw2009-02-09 22:19:18 -0500
commit98c52ea14883f0261fd7a2f2fe8db42d96331ddb (patch)
treea0c5817f4c226ed14b3fe510314e825980b6cb4e /src/mailman/mta
parent84a81e4a90349f7116863d2f45cda1ee31b5b3b5 (diff)
downloadmailman-98c52ea14883f0261fd7a2f2fe8db42d96331ddb.tar.gz
mailman-98c52ea14883f0261fd7a2f2fe8db42d96331ddb.tar.zst
mailman-98c52ea14883f0261fd7a2f2fe8db42d96331ddb.zip
Move mailman.Message to mailman.email.Message. Rename Message.get_sender() to
Message.sender (property) and Message.get_senders() to Message.senders (another property). The semantics of .sender is slightly different too; it no longer consults config.mailman.use_envelope_sender. Add absolute_import and unicode_literals to Utils.py, and clean up a few imports.
Diffstat (limited to 'src/mailman/mta')
-rw-r--r--src/mailman/mta/smtp_direct.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mailman/mta/smtp_direct.py b/src/mailman/mta/smtp_direct.py
index 717b3eb90..327820e72 100644
--- a/src/mailman/mta/smtp_direct.py
+++ b/src/mailman/mta/smtp_direct.py
@@ -151,7 +151,7 @@ def process(mlist, msg, msgdata):
# VERPing, it doesn't matter because bulkdeliver is working on a copy, but
# otherwise msg gets changed. If the list is anonymous, the original
# sender is long gone, but Cleanse.py has logged it.
- origsender = msgdata.get('original_sender', msg.get_sender())
+ origsender = msgdata.get('original_sender', msg.sender)
# `undelivered' is a copy of chunks that we pop from to do deliveries.
# This seems like a good tradeoff between robustness and resource
# utilization. If delivery really fails (i.e. qfiles/shunt type