summaryrefslogtreecommitdiff
path: root/service/pixelated/adapter
diff options
context:
space:
mode:
authorJefferson Stachelski <jstachel@thoughtworks.com>2015-11-13 11:19:25 -0200
committerJefferson Stachelski <jstachel@thoughtworks.com>2015-11-13 16:01:27 -0200
commitc9caf2f49ae09c7ce76022b63ed9047b37d71ffb (patch)
treedaabbf6eee077d9316088c6662999360533e0a74 /service/pixelated/adapter
parentc827cebf09aa2e2faa7a5d660903dd34dda089d3 (diff)
Issue #523 - Created an archive mail button
Diffstat (limited to 'service/pixelated/adapter')
-rw-r--r--service/pixelated/adapter/services/mail_service.py5
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)