mirror of
https://github.com/simple-login/app.git
synced 2024-09-27 20:31:30 +02:00
website_email: use From header instead of envelope from
This commit is contained in:
parent
29d48b7d0f
commit
c37ba0e1de
@ -537,6 +537,7 @@ class ForwardEmail(db.Model, ModelMixin):
|
|||||||
db.ForeignKey(GenEmail.id, ondelete="cascade"), nullable=False
|
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)
|
website_email = db.Column(db.String(128), nullable=False)
|
||||||
|
|
||||||
# when user clicks on "reply", they will reply to this address.
|
# when user clicks on "reply", they will reply to this address.
|
||||||
|
@ -88,7 +88,7 @@ class MailHandler:
|
|||||||
|
|
||||||
user_email = gen_email.user.email
|
user_email = gen_email.user.email
|
||||||
|
|
||||||
website_email = envelope.mail_from
|
website_email = msg["From"]
|
||||||
|
|
||||||
forward_email = ForwardEmail.get_by(
|
forward_email = ForwardEmail.get_by(
|
||||||
gen_email_id=gen_email.id, website_email=website_email
|
gen_email_id=gen_email.id, website_email=website_email
|
||||||
|
Loading…
Reference in New Issue
Block a user