diff options
author | Giovane <giovaneliberato@gmail.com> | 2015-11-19 16:20:52 -0200 |
---|---|---|
committer | Giovane <giovaneliberato@gmail.com> | 2015-11-19 16:21:08 -0200 |
commit | c21a6ddf277514c62a89cbd9214ec4fc905b4988 (patch) | |
tree | 6bfa9cbcb5d2522649d5985bd8d323c9f5491511 /service/pixelated/adapter/model | |
parent | 2615c785260ea168f0eb8d9fe2a8a6576a5392dd (diff) |
Move 'From' initialization to InputMail factory. w/ @bwagner #531
Diffstat (limited to 'service/pixelated/adapter/model')
-rw-r--r-- | service/pixelated/adapter/model/mail.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/service/pixelated/adapter/model/mail.py b/service/pixelated/adapter/model/mail.py index 0daa6296..bb47a434 100644 --- a/service/pixelated/adapter/model/mail.py +++ b/service/pixelated/adapter/model/mail.py @@ -160,7 +160,6 @@ class InputMail(Mail): def to_smtp_format(self): mime_multipart = self.to_mime_multipart() - mime_multipart['From'] = InputMail.FROM_EMAIL_ADDRESS return mime_multipart.as_string() @staticmethod @@ -180,11 +179,10 @@ class InputMail(Mail): input_mail.headers = {key.capitalize(): value for key, value in mail_dict.get('header', {}).items()} input_mail.headers['Date'] = date.mail_date_now() + input_mail.headers['From'] = InputMail.FROM_EMAIL_ADDRESS input_mail.body = mail_dict.get('body', '') - input_mail.tags = set(mail_dict.get('tags', [])) - input_mail._status = set(mail_dict.get('status', [])) return input_mail |