From 491f4de120a44d0f41038af165f9e9456a5e6ef3 Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Mon, 14 Sep 2020 17:55:55 +0200 Subject: [PATCH] add Contact mail_from and from_header column --- app/models.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/models.py b/app/models.py index fd970106..0f2d0d35 100644 --- a/app/models.py +++ b/app/models.py @@ -1099,6 +1099,12 @@ class Contact(db.Model, ModelMixin): # the latest reply sent to this contact latest_reply: Optional[Arrow] = None + # to investigate why the website_email is sometimes not correctly parsed + # the envelope mail_from + mail_from = db.Column(db.Text, nullable=True, default=None) + # the message["From"] header + from_header = db.Column(db.Text, nullable=True, default=None) + @property def email(self): return self.website_email