Skip to content

Commit

Permalink
Also set References: header for CI emails
Browse files Browse the repository at this point in the history
Summary:
Let's also set the References: header in emails in case some email clients
decide not to use In-Reply-To: for threading matters (as seems to be allowed by
the "spec").

Reviewed By: chantra

Differential Revision: D50231525

fbshipit-source-id: 4470fdd498b021b6349fad8a3231d7757f38dc23
  • Loading branch information
danielocfb-test authored and facebook-github-bot committed Oct 13, 2023
1 parent d562e75 commit c3f8f4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel_patches_daemon/branch_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ async def send_email(config: EmailConfig, series: Series, subject: str, body: st
msg["In-Reply-To"] = f"{series.cover_letter['msgid']}"
else:
msg["In-Reply-To"] = f"{series.patches[0]['msgid']}"
msg["References"] = msg["In-Reply-To"]
msg["Subject"] = subject
msg["From"] = config.smtp_from
if to_list:
Expand Down

0 comments on commit c3f8f4e

Please sign in to comment.