From 4457276111adaa6680f375b8a74786f7345ccdb5 Mon Sep 17 00:00:00 2001 From: ced <> Date: Wed, 11 Jul 2007 15:10:02 +0000 Subject: [PATCH] crm,tools: remove 'Reply-To' header before set an other one bzr revid: ced-07b56f48c51b2ac2c7ece29bccee3c2ef4894820 --- bin/tools/misc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/tools/misc.py b/bin/tools/misc.py index 3a04e205d5c..61912565ea9 100644 --- a/bin/tools/misc.py +++ b/bin/tools/misc.py @@ -200,6 +200,7 @@ def email_send(email_from, email_to, subject, body, email_cc=[], email_bcc=[], o msg = MIMEText(body or '', _charset='utf-8') msg['Subject'] = Header(subject.decode('utf8'), 'utf-8') msg['From'] = email_from + del msg['Reply-To'] if reply_to: msg['Reply-To'] = msg['From']+', '+reply_to msg['To'] = COMMASPACE.join(email_to) @@ -236,6 +237,7 @@ def email_send_attach(email_from, email_to, subject, body, email_cc=[], email_bc msg['Subject'] = Header(subject.decode('utf8'), 'utf-8') msg['From'] = email_from + del msg['Reply-To'] if reply_to: msg['Reply-To'] = reply_to msg['To'] = COMMASPACE.join(email_to)