From d186b0204f738367d530514707d0f95a6d4bf865 Mon Sep 17 00:00:00 2001 From: Bruno Wagner Date: Thu, 24 Sep 2015 17:58:16 -0300 Subject: Changed date format to conform to mail RFC #438 --- service/pixelated/adapter/model/mail.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'service/pixelated/adapter/model') diff --git a/service/pixelated/adapter/model/mail.py b/service/pixelated/adapter/model/mail.py index 9f2db32e..5a0a1b92 100644 --- a/service/pixelated/adapter/model/mail.py +++ b/service/pixelated/adapter/model/mail.py @@ -241,7 +241,7 @@ class InputMail(Mail): input_mail = InputMail() input_mail.headers = {key.capitalize(): value for key, value in mail_dict.get('header', {}).items()} - input_mail.headers['Date'] = date.iso_now() + input_mail.headers['Date'] = date.mail_date_now() input_mail.body = mail_dict.get('body', '') @@ -254,7 +254,7 @@ class InputMail(Mail): def from_python_mail(mail): input_mail = InputMail() input_mail.headers = {key.capitalize(): value for key, value in mail.items()} - input_mail.headers['Date'] = date.iso_now() + input_mail.headers['Date'] = date.mail_date_now() input_mail.headers['Subject'] = mail['Subject'] input_mail.headers['To'] = InputMail.FROM_EMAIL_ADDRESS input_mail._mime = MIMEMultipart() -- cgit v1.2.3