summaryrefslogtreecommitdiff
path: root/Mailman/Handlers/SMTPDirect.py
diff options
context:
space:
mode:
authorbwarsaw2005-12-30 18:56:46 +0000
committerbwarsaw2005-12-30 18:56:46 +0000
commit991f57220ddfdc34c9bab88f6241ecc486abdbcc (patch)
tree4a913b66e7e9e5d7b5a77f57d56236330a164019 /Mailman/Handlers/SMTPDirect.py
parent0589a8a58e94ec29644c9d665055b4a1be9953b5 (diff)
downloadmailman-991f57220ddfdc34c9bab88f6241ecc486abdbcc.tar.gz
mailman-991f57220ddfdc34c9bab88f6241ecc486abdbcc.tar.zst
mailman-991f57220ddfdc34c9bab88f6241ecc486abdbcc.zip
Port cleaning changes forward from 2.1-maint branch.
Diffstat (limited to 'Mailman/Handlers/SMTPDirect.py')
-rw-r--r--Mailman/Handlers/SMTPDirect.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/Mailman/Handlers/SMTPDirect.py b/Mailman/Handlers/SMTPDirect.py
index 0d93073d2..72b587e98 100644
--- a/Mailman/Handlers/SMTPDirect.py
+++ b/Mailman/Handlers/SMTPDirect.py
@@ -12,7 +12,8 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+# USA.
"""Local SMTP direct drop-off.
@@ -135,11 +136,11 @@ def process(mlist, msg, msgdata):
t0 = time.time()
# Open the initial connection
origrecips = msgdata['recips']
- # MAS: get the message sender now for logging. If we're using 'sender'
- # and not 'from', bulkdeliver changes it for bounce processing.
- # If we're 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.
+ # MAS: get the message sender now for logging. If we're using 'sender'
+ # and not 'from', bulkdeliver changes it for bounce processing. If we're
+ # 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())
# `undelivered' is a copy of chunks that we pop from to do deliveries.
# This seems like a good tradeoff between robustness and resource