add Contact mail_from and from_header column

This commit is contained in:
Son NK 2020-09-14 17:55:55 +02:00
parent 1ab36bd22b
commit 491f4de120
1 changed files with 6 additions and 0 deletions

View File

@ -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