diff options
author | Giovane <giovaneliberato@gmail.com> | 2015-11-27 21:12:19 -0200 |
---|---|---|
committer | Giovane <giovaneliberato@gmail.com> | 2015-11-27 21:12:58 -0200 |
commit | 935b1b6f1f200a995dc1f82391a26dfe59a87e50 (patch) | |
tree | dcd751443b0966e6b5dcda2f9accf3eacb44171a /service/pixelated/adapter/services | |
parent | 230ac791547576850e886e1d927b400dbe65e505 (diff) |
Permanently delete discarded drafts #512 w/ bwagner
Diffstat (limited to 'service/pixelated/adapter/services')
-rw-r--r-- | service/pixelated/adapter/services/mail_service.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/pixelated/adapter/services/mail_service.py b/service/pixelated/adapter/services/mail_service.py index 6ecf3245..f0bc056b 100644 --- a/service/pixelated/adapter/services/mail_service.py +++ b/service/pixelated/adapter/services/mail_service.py @@ -122,7 +122,7 @@ class MailService(object): def delete_mail(self, mail_id): mail = yield self.mail(mail_id) if mail is not None: - if mail.mailbox_name.upper() == u'TRASH': + if mail.mailbox_name.upper() in (u'TRASH', u'DRAFTS'): yield self.mail_store.delete_mail(mail_id) else: yield self.mail_store.move_mail_to_mailbox(mail_id, 'TRASH') |