From 563bee8fc23a0858f8e6e9711b00c80df8f816ab Mon Sep 17 00:00:00 2001 From: Denis Costa Date: Fri, 23 Sep 2016 12:36:36 -0300 Subject: Adds translation to welcome mail. --- service/pixelated/adapter/model/mail.py | 9 --------- 1 file changed, 9 deletions(-) (limited to 'service/pixelated/adapter/model/mail.py') diff --git a/service/pixelated/adapter/model/mail.py b/service/pixelated/adapter/model/mail.py index a24818c0..a5702a20 100644 --- a/service/pixelated/adapter/model/mail.py +++ b/service/pixelated/adapter/model/mail.py @@ -13,10 +13,8 @@ # # You should have received a copy of the GNU Affero General Public License # along with Pixelated. If not, see . -import os import re import logging -from email import message_from_file from email.mime.text import MIMEText from email.header import Header from hashlib import sha256 @@ -217,10 +215,3 @@ class InputMail(Mail): input_mail.body = unicode(payload.as_string()) input_mail._mime = input_mail.to_mime_multipart() return input_mail - - -def welcome_mail(): - 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) - return InputMail.from_python_mail(mail_template) -- cgit v1.2.3