diff options
author | Christoph <c@kluenter.de> | 2016-05-31 16:31:41 +0200 |
---|---|---|
committer | Christoph <c@kluenter.de> | 2016-05-31 16:31:41 +0200 |
commit | ff292f5127d5c90e5d982e11c20df52c6444e0ae (patch) | |
tree | 3254d932e08d99bce7b058e917266db8be2d0d33 /service/pixelated/adapter/services | |
parent | 3422846b2ef9677db857e3adde312b7fbbd4b068 (diff) | |
parent | dd39512b7ca617c9cd3c2e29c8e3ec068631b9e8 (diff) |
Merge pull request #701 from shabbyrobe/fix-issue-695
Issue 695: Show all recipients in mail sent folder
Diffstat (limited to 'service/pixelated/adapter/services')
-rw-r--r-- | service/pixelated/adapter/services/mail_sender.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>. 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) |