From af211627657ce60502f329f36b0109f104ab2d04 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Sun, 30 Aug 2015 17:23:04 -0300 Subject: [refactor] use mailstore to delete mails forever It was using querier, which is being deprecates as #432 --- service/pixelated/adapter/services/mail_service.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'service/pixelated/adapter') 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) -- cgit v1.2.3