diff options
Diffstat (limited to 'service/pixelated/adapter/model')
-rw-r--r-- | service/pixelated/adapter/model/mail.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/service/pixelated/adapter/model/mail.py b/service/pixelated/adapter/model/mail.py index 3522f695..b3d2e3a5 100644 --- a/service/pixelated/adapter/model/mail.py +++ b/service/pixelated/adapter/model/mail.py @@ -380,6 +380,11 @@ class PixelatedMail(Mail): return self.hdoc.content["headers"].get("OpenPGP", None) is not None or \ self.hdoc.content["headers"].get("X-Pixelated-encryption-status", "false") == "true" + @property + def bounced(self): + content_type = self.hdoc.content["headers"].get("Content-Type", '') + return re.compile('delivery-status').search(content_type) + def as_dict(self): dict_mail = {'header': {k.lower(): v for k, v in self.headers.items()}, 'ident': self.ident, |