diff options
author | Duda Dornelles <ddornell@thoughtworks.com> | 2015-02-12 17:32:40 -0200 |
---|---|---|
committer | Duda Dornelles <ddornell@thoughtworks.com> | 2015-02-13 12:47:12 -0200 |
commit | 2e88b9d9d68bae91cfde466edfc027f19f7c74b8 (patch) | |
tree | f60c873b59a86b2684683139c6ccbd88e980bfb4 /service/pixelated/adapter | |
parent | 20d3971db4611c9229262b26d973a9df1a71f9f6 (diff) |
Monkey patching fetch decrypt to add encryption info
Diffstat (limited to 'service/pixelated/adapter')
-rw-r--r-- | service/pixelated/adapter/model/mail.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/service/pixelated/adapter/model/mail.py b/service/pixelated/adapter/model/mail.py index dfc0ea1c..dc05a4de 100644 --- a/service/pixelated/adapter/model/mail.py +++ b/service/pixelated/adapter/model/mail.py @@ -379,7 +379,8 @@ class PixelatedMail(Mail): @property def encrypted(self): - return self.hdoc.content["headers"].get("OpenPGP", None) is not None + return self.hdoc.content["headers"].get("OpenPGP", None) is not None or \ + self.hdoc.content["headers"].get("X-Pixelated-encryption-status", "false") is "true" def as_dict(self): dict_mail = {'header': {k.lower(): v for k, v in self.headers.items()}, |