mirror of
https://github.com/simple-login/app.git
synced 2024-11-11 10:03:04 +08:00
add Contact mail_from and from_header column
This commit is contained in:
parent
1ab36bd22b
commit
491f4de120
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue