From 96ce1b5810ed1a1a9c6072ed2ed57fdb8f44360b Mon Sep 17 00:00:00 2001 From: Jefferson Stachelski Date: Wed, 14 Oct 2015 19:21:44 -0300 Subject: issue #484 - Add welcome mail for new accounts Make a logic to add the welcome mail in INBOX when the user log into account at the first time --- service/pixelated/adapter/services/mail_service.py | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'service/pixelated/adapter/services/mail_service.py') diff --git a/service/pixelated/adapter/services/mail_service.py b/service/pixelated/adapter/services/mail_service.py index 9fd5589f..e2614d4e 100644 --- a/service/pixelated/adapter/services/mail_service.py +++ b/service/pixelated/adapter/services/mail_service.py @@ -129,14 +129,3 @@ class MailService(object): @defer.inlineCallbacks def delete_permanent(self, mail_id): yield self.mail_store.delete_mail(mail_id) - - @defer.inlineCallbacks - def add_welcome_mail_to_inbox(self): - current_path = os.path.dirname(os.path.abspath(__file__)) - with open(os.path.join(current_path, '..', '..', 'assets', 'welcome.mail')) as mail_template_file: - mail_template = message_from_file(mail_template_file) - - input_mail = InputMail.from_python_mail(mail_template) - - mail = yield self.mail_store.add_mail('INBOX', input_mail.raw) - defer.returnValue(mail) -- cgit v1.2.3