summaryrefslogtreecommitdiff
path: root/service/pixelated/adapter/model/mail.py
diff options
context:
space:
mode:
authorDenis Costa <deniscostadsc@gmail.com>2016-09-23 12:36:36 -0300
committerDenis Costa <deniscostadsc@gmail.com>2016-09-23 12:39:27 -0300
commit563bee8fc23a0858f8e6e9711b00c80df8f816ab (patch)
tree5e8167eec5b07872b69f1c228949bd9d5b3c5ab1 /service/pixelated/adapter/model/mail.py
parente9426843d8d772317f364347002bddb4f3ddc10d (diff)
Adds translation to welcome mail.
Diffstat (limited to 'service/pixelated/adapter/model/mail.py')
-rw-r--r--service/pixelated/adapter/model/mail.py9
1 files changed, 0 insertions, 9 deletions
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 <http://www.gnu.org/licenses/>.
-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)