From dd39512b7ca617c9cd3c2e29c8e3ec068631b9e8 Mon Sep 17 00:00:00 2001 From: shabbyrobe Date: Fri, 27 May 2016 15:17:01 +1000 Subject: Issue #695: Show all recipients in mail sent folder --- service/pixelated/adapter/services/mail_sender.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'service/pixelated/adapter/services') diff --git a/service/pixelated/adapter/services/mail_sender.py b/service/pixelated/adapter/services/mail_sender.py index 5ce3f7f1..b7b5bfe6 100644 --- a/service/pixelated/adapter/services/mail_sender.py +++ b/service/pixelated/adapter/services/mail_sender.py @@ -15,6 +15,7 @@ # along with Pixelated. If not, see . from StringIO import StringIO from email.utils import parseaddr +from copy import deepcopy from leap.mail.outgoing.service import OutgoingMail from twisted.internet.defer import Deferred, fail @@ -47,6 +48,9 @@ class MailSender(object): @defer.inlineCallbacks def sendmail(self, mail): + # message is changed in sending, but should be saved unaltered + mail = deepcopy(mail) + recipients = flatten([mail.to, mail.cc, mail.bcc]) results = yield self._send_mail_to_all_recipients(mail, recipients) -- cgit v1.2.3