summaryrefslogtreecommitdiff
path: root/service/pixelated/adapter/services/mail_service.py
diff options
context:
space:
mode:
authorJefferson Stachelski <jstachel@thoughtworks.com>2015-10-14 19:21:44 -0300
committerJefferson Stachelski <jstachel@thoughtworks.com>2015-10-14 19:21:44 -0300
commit96ce1b5810ed1a1a9c6072ed2ed57fdb8f44360b (patch)
tree504c335f32871d810e18297225f8619536497d63 /service/pixelated/adapter/services/mail_service.py
parent3863e28bf593591b1b323f8b848233b9e6a1947b (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.py11
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)