diff options
author | Jefferson Stachelski <jstachel@thoughtworks.com> | 2015-11-13 11:19:25 -0200 |
---|---|---|
committer | Jefferson Stachelski <jstachel@thoughtworks.com> | 2015-11-13 16:01:27 -0200 |
commit | c9caf2f49ae09c7ce76022b63ed9047b37d71ffb (patch) | |
tree | daabbf6eee077d9316088c6662999360533e0a74 /service/pixelated/adapter | |
parent | c827cebf09aa2e2faa7a5d660903dd34dda089d3 (diff) |
Issue #523 - Created an archive mail button
Diffstat (limited to 'service/pixelated/adapter')
-rw-r--r-- | service/pixelated/adapter/services/mail_service.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/service/pixelated/adapter/services/mail_service.py b/service/pixelated/adapter/services/mail_service.py index 53f7615e..5485ae18 100644 --- a/service/pixelated/adapter/services/mail_service.py +++ b/service/pixelated/adapter/services/mail_service.py @@ -132,5 +132,10 @@ class MailService(object): yield self.mail_store.move_mail_to_mailbox(mail_id, 'INBOX') @defer.inlineCallbacks + def archive_mail(self, mail_id): + yield self.mail_store.add_mailbox('ARCHIVE') + yield self.mail_store.move_mail_to_mailbox(mail_id, 'ARCHIVE') + + @defer.inlineCallbacks def delete_permanent(self, mail_id): yield self.mail_store.delete_mail(mail_id) |