diff options
author | Patrick Maia <pmaia@thoughtworks.com> | 2014-09-17 17:02:28 -0300 |
---|---|---|
committer | Patrick Maia <pmaia@thoughtworks.com> | 2014-09-17 17:02:28 -0300 |
commit | be4779cd40af81136aa85e65bbe8b3e4432f2783 (patch) | |
tree | 36d8e7b897bc802f170de2b625d5e5bda32f29ae | |
parent | 95b0e2e6f834804630bf9d091b156ac68ff20583 (diff) |
#74 - adds message to trash before delete it from original mailbox
-rw-r--r-- | service/pixelated/adapter/pixelated_mailboxes.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/service/pixelated/adapter/pixelated_mailboxes.py b/service/pixelated/adapter/pixelated_mailboxes.py index aa9015e5..e8b302a7 100644 --- a/service/pixelated/adapter/pixelated_mailboxes.py +++ b/service/pixelated/adapter/pixelated_mailboxes.py @@ -40,8 +40,9 @@ class PixelatedMailBoxes(): mail.remove_all_tags() origin_mailbox = mail.mailbox_name + new_mail_id = self.trash().add(mail) self._create_or_get(origin_mailbox).remove(mail) - return self.trash().add(mail) + return new_mail_id def mail(self, mail_id): for mailbox in self.mailboxes: |