diff options
author | Jefferson Stachelski <jstachel@thoughtworks.com> | 2015-10-14 19:21:44 -0300 |
---|---|---|
committer | Jefferson Stachelski <jstachel@thoughtworks.com> | 2015-10-14 19:21:44 -0300 |
commit | 96ce1b5810ed1a1a9c6072ed2ed57fdb8f44360b (patch) | |
tree | 504c335f32871d810e18297225f8619536497d63 /service/pixelated/adapter/services/mail_service.py | |
parent | 3863e28bf593591b1b323f8b848233b9e6a1947b (diff) |
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
Diffstat (limited to 'service/pixelated/adapter/services/mail_service.py')
-rw-r--r-- | service/pixelated/adapter/services/mail_service.py | 11 |
1 files changed, 0 insertions, 11 deletions
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) |