summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2015-08-30 17:23:04 -0300
committerVictor Shyba <victor.shyba@gmail.com>2015-08-30 17:23:04 -0300
commitaf211627657ce60502f329f36b0109f104ab2d04 (patch)
tree0e43977da1090a1f32862ab176507783099a88dc
parent601d93c4af4cd3cf73c5383761728931f27c351e (diff)
[refactor] use mailstore to delete mails forever
It was using querier, which is being deprecates as #432
-rw-r--r--service/pixelated/adapter/services/mail_service.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/service/pixelated/adapter/services/mail_service.py b/service/pixelated/adapter/services/mail_service.py
index 05ea3101..694f910a 100644
--- a/service/pixelated/adapter/services/mail_service.py
+++ b/service/pixelated/adapter/services/mail_service.py
@@ -127,6 +127,5 @@ class MailService(object):
@defer.inlineCallbacks
def delete_permanent(self, mail_id):
- mail = yield self.mail(mail_id)
+ yield self.mail_store.delete_mail(mail_id)
self.search_engine.remove_from_index(mail_id)
- yield self.querier.remove_mail(mail)