summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorAlexandre Pretto Nunes <anunes@thoughtworks.com>2014-12-03 16:00:16 -0200
committerAlexandre Pretto Nunes <anunes@thoughtworks.com>2014-12-03 16:00:16 -0200
commitfada5155d78336ea4796e934520636472df17348 (patch)
treef3e0f5640abf68027172795ca9ffd054d3d5db53 /service
parentbd8fd4d18c1f43d2a393cb5cf7aea6abb523fd9a (diff)
#135 Fix method that changed but was missed during a rebase
Diffstat (limited to 'service')
-rw-r--r--service/pixelated/adapter/mail.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/service/pixelated/adapter/mail.py b/service/pixelated/adapter/mail.py
index 3003f9eb..e2a48062 100644
--- a/service/pixelated/adapter/mail.py
+++ b/service/pixelated/adapter/mail.py
@@ -329,7 +329,14 @@ class PixelatedMail(Mail):
return self.hdoc.content["headers"].get("OpenPGP", None) is not None
def as_dict(self):
- dict_mail = super(PixelatedMail, self).as_dict()
+ dict_mail = {'header': {k.lower(): v for k, v in self.headers.items()},
+ 'ident': self.ident,
+ 'tags': list(self.tags),
+ 'status': list(self.status),
+ 'security_casing': self.security_casing,
+ 'body': self.body,
+ 'mailbox': self.mailbox_name.lower(),
+ 'attachments': self.parts['attachments'] if self.parts else []}
dict_mail['replying'] = {'single': None, 'all': {'to-field': [], 'cc-field': []}}
sender_mail = self.headers.get('Reply-To', self.headers['From'])