fix: add sender_email to UserSmtpConfig to fix SMTP From header (501 bad sender address)

Agent-Logs-Url: https://github.com/christianlouis/InboxConverge/sessions/dc853384-976a-46e5-945b-60c9a9cce638

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-05-03 21:46:47 +00:00
committed by GitHub
parent edb4e8b0cc
commit a21e2f7df6
9 changed files with 72 additions and 3 deletions
+3 -1
View File
@@ -1256,7 +1256,9 @@ class MailProcessor:
# Create forwarding message
forward_msg = MIMEMultipart("mixed")
forward_msg["From"] = smtp_config["username"]
forward_msg["From"] = (
smtp_config.get("sender_email") or smtp_config["username"]
)
forward_msg["To"] = destination
forward_msg["Date"] = formatdate(localtime=True)
forward_msg["Message-ID"] = make_msgid()