summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2002-10-23 13:39:43 +0000
committerbwarsaw2002-10-23 13:39:43 +0000
commit419bf7bdd447eb365d65d1eba9f5d13edf6e3aef (patch)
treec1ed11e6b1e95beddb7b40dfc2d2283d4985285f
parentbb47b67fa1902422f4cb8d42b80a9ad77ae862ba (diff)
downloadmailman-419bf7bdd447eb365d65d1eba9f5d13edf6e3aef.tar.gz
mailman-419bf7bdd447eb365d65d1eba9f5d13edf6e3aef.tar.zst
mailman-419bf7bdd447eb365d65d1eba9f5d13edf6e3aef.zip
-rw-r--r--Mailman/Handlers/SMTPDirect.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/Mailman/Handlers/SMTPDirect.py b/Mailman/Handlers/SMTPDirect.py
index e3927125d..a101e4f87 100644
--- a/Mailman/Handlers/SMTPDirect.py
+++ b/Mailman/Handlers/SMTPDirect.py
@@ -86,10 +86,12 @@ def process(mlist, msg, msgdata):
# Nobody to deliver to!
return
# Calculate the non-VERP envelope sender.
- if mlist:
- envsender = mlist.GetBouncesEmail()
- else:
- envsender = Utils.get_site_email(extra='bounces')
+ envsender = msgdata.get('envsender')
+ if envsender is None:
+ if mlist:
+ envsender = mlist.GetBouncesEmail()
+ else:
+ envsender = Utils.get_site_email(extra='bounces')
# Time to split up the recipient list. If we're personalizing or VERPing
# then each chunk will have exactly one recipient. We'll then hand craft
# an envelope sender and stitch a message together in memory for each one