mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 00:48:32 +01:00
website_email: use From header instead of envelope from
This commit is contained in:
parent
29d48b7d0f
commit
c37ba0e1de
2 changed files with 2 additions and 1 deletions
|
@ -537,6 +537,7 @@ class ForwardEmail(db.Model, ModelMixin):
|
|||
db.ForeignKey(GenEmail.id, ondelete="cascade"), nullable=False
|
||||
)
|
||||
|
||||
# used to be envelope header, should be mail header from instead
|
||||
website_email = db.Column(db.String(128), nullable=False)
|
||||
|
||||
# when user clicks on "reply", they will reply to this address.
|
||||
|
|
|
@ -88,7 +88,7 @@ class MailHandler:
|
|||
|
||||
user_email = gen_email.user.email
|
||||
|
||||
website_email = envelope.mail_from
|
||||
website_email = msg["From"]
|
||||
|
||||
forward_email = ForwardEmail.get_by(
|
||||
gen_email_id=gen_email.id, website_email=website_email
|
||||
|
|
Loading…
Reference in a new issue