diff options
author | Patrick Maia <patrickjourdanmaia@gmail.com> | 2014-08-14 16:39:31 -0300 |
---|---|---|
committer | Patrick Maia <patrickjourdanmaia@gmail.com> | 2014-08-14 16:46:20 -0300 |
commit | 404dddac87e873b94962b234954d7b722b8b1240 (patch) | |
tree | efda3948a622bdeee64a1d921f4d1d834a86e6e1 /service/app | |
parent | c38da5c66cf524ce15e3ede8d0349dc662189892 (diff) |
Will only fix To header if there is one
Diffstat (limited to 'service/app')
-rw-r--r-- | service/app/adapter/pixelated_mail.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/service/app/adapter/pixelated_mail.py b/service/app/adapter/pixelated_mail.py index 99ba1ba8..80ed2401 100644 --- a/service/app/adapter/pixelated_mail.py +++ b/service/app/adapter/pixelated_mail.py @@ -40,6 +40,8 @@ class PixelatedMail: temporary_headers = {} for header, value in self.leap_mail.hdoc.content['headers'].items(): temporary_headers[header.lower()] = value + if(temporary_headers.get('to') is not None): + temporary_headers['to'] = [temporary_headers['to']] return temporary_headers def extract_tags(self): |