diff options
author | Bruno Wagner <bwagner@riseup.net> | 2015-09-24 17:58:16 -0300 |
---|---|---|
committer | Bruno Wagner <bwagner@riseup.net> | 2015-09-25 16:54:36 -0300 |
commit | d186b0204f738367d530514707d0f95a6d4bf865 (patch) | |
tree | 276f5254aed59efdf5ce3cfc70be43ac448f2189 /service/pixelated/adapter/mailstore | |
parent | 6eba069fdb566fd006fa48b8b9c5d5b44085f524 (diff) |
Changed date format to conform to mail RFC #438
Diffstat (limited to 'service/pixelated/adapter/mailstore')
-rw-r--r-- | service/pixelated/adapter/mailstore/leap_mailstore.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/pixelated/adapter/mailstore/leap_mailstore.py b/service/pixelated/adapter/mailstore/leap_mailstore.py index 215cd74a..0182efd9 100644 --- a/service/pixelated/adapter/mailstore/leap_mailstore.py +++ b/service/pixelated/adapter/mailstore/leap_mailstore.py @@ -169,7 +169,7 @@ class LeapMail(Mail): def from_dict(mail_dict): # TODO: implement this method and also write tests for it headers = {key.capitalize(): value for key, value in mail_dict.get('header', {}).items()} - headers['Date'] = date.iso_now() + headers['Date'] = date.mail_date_now() body = mail_dict.get('body', '') tags = set(mail_dict.get('tags', [])) status = set(mail_dict.get('status', [])) |