summaryrefslogtreecommitdiff
path: root/Mailman/Handlers
diff options
context:
space:
mode:
authorbwarsaw2003-02-05 05:19:41 +0000
committerbwarsaw2003-02-05 05:19:41 +0000
commit2532e29919bcc1bda962b91d6403ac2cb0a2d35a (patch)
treeb3620936651059002617e8275c8bf5cf0d0de271 /Mailman/Handlers
parent3f79959b177335eb0257b964ee9ba199c4f35c9c (diff)
downloadmailman-2532e29919bcc1bda962b91d6403ac2cb0a2d35a.tar.gz
mailman-2532e29919bcc1bda962b91d6403ac2cb0a2d35a.tar.zst
mailman-2532e29919bcc1bda962b91d6403ac2cb0a2d35a.zip
verpdeliver(): Use the copy module's deepcopy() function instead doing
a round trip through flattening.
Diffstat (limited to 'Mailman/Handlers')
-rw-r--r--Mailman/Handlers/SMTPDirect.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Mailman/Handlers/SMTPDirect.py b/Mailman/Handlers/SMTPDirect.py
index e1f832ea9..4724c3a18 100644
--- a/Mailman/Handlers/SMTPDirect.py
+++ b/Mailman/Handlers/SMTPDirect.py
@@ -25,6 +25,7 @@ Note: This file only handles single threaded delivery. See SMTPThreaded.py
for a threaded implementation.
"""
+import copy
import time
import socket
import smtplib
@@ -268,7 +269,7 @@ def verpdeliver(mlist, msg, msgdata, envsender, failures, conn):
# they missed due to bouncing. Neat idea.
msgdata['recips'] = [recip]
# Make a copy of the message and decorate + delivery that
- msgcopy = email.message_from_string(msg.as_string())
+ msgcopy = copy.deepcopy(msg)
Decorate.process(mlist, msgcopy, msgdata)
# Calculate the envelope sender, which we may be VERPing
if msgdata.get('verp'):