summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2001-11-20 16:39:38 +0000
committerbwarsaw2001-11-20 16:39:38 +0000
commit400d3072c224299c7da791f8f82383cda77f8071 (patch)
tree3098a6b8930bd935832e346efb1f52eb6ba405cc
parent12cfa335f9f02726ed0ba10dffc4df0d3e79038c (diff)
downloadmailman-400d3072c224299c7da791f8f82383cda77f8071.tar.gz
mailman-400d3072c224299c7da791f8f82383cda77f8071.tar.zst
mailman-400d3072c224299c7da791f8f82383cda77f8071.zip
process(): VERP support. If VERP_PERSONALIZED_DELIVERIES is true,
then set the `verp' flag in the message metadata. This will signal the SMTPDirect module to VERP this message delivery.
-rw-r--r--Mailman/Handlers/Personalize.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Mailman/Handlers/Personalize.py b/Mailman/Handlers/Personalize.py
index fec9d0524..22000dc21 100644
--- a/Mailman/Handlers/Personalize.py
+++ b/Mailman/Handlers/Personalize.py
@@ -45,10 +45,13 @@ def process(mlist, msg, msgdata):
msg['To'] = '%s (%s)' % (member, name)
else:
msg['To'] = member
+ # See if we're taking the opportunity to VERP for more reliable bounce
+ # processing.
+ metadatacopy['verp'] = mm_cfg.VERP_PERSONALIZED_DELIVERIES
inq.enqueue(msg, metadatacopy, listname=mlist.internal_name())
# Restore the original To: line
del msg['To']
msg['To'] = originalto
# Don't let the normal ToOutgoing processing actually send the original
- # copy.
+ # copy, otherwise we'll get duplicates.
del msgdata['recips']