From cb2033443c40820339bf389e4cea83900ce9bac7 Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Mon, 14 Sep 2020 18:22:26 +0200 Subject: [PATCH] fill up contact mail_from, from_header if possible --- email_handler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/email_handler.py b/email_handler.py index c5894c02..19f11b7a 100644 --- a/email_handler.py +++ b/email_handler.py @@ -189,6 +189,8 @@ def get_or_create_contact( website_email=contact_email, name=contact_name, reply_email=reply_email, + mail_from=mail_from, + from_header=contact_from_header, ) db.session.commit() except IntegrityError: @@ -249,6 +251,7 @@ def replace_header_when_forward(msg: Message, alias: Alias, header: str): name=contact_name, reply_email=reply_email, is_cc=header.lower() == "cc", + from_header=addr, ) db.session.commit() except IntegrityError: