diff options
Diffstat (limited to 'service/pixelated/adapter/model')
-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()}, |