Skip to content

Commit

Permalink
Added X-Mailer header to outgoing emails (go-gitea#19562)
Browse files Browse the repository at this point in the history
- It's a non-standard mentioned in https://www.ietf.org/rfc/rfc2076.html#section-3.4
- This header makes emails filtering easier
  • Loading branch information
TitaniumHocker authored and AbdulrhmnGhanem committed Aug 23, 2022
1 parent 3be1289 commit bc7f7f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions services/mailer/mail.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ func generateAdditionalHeaders(ctx *mailCommentContext, reason string, recipient
//"List-Post": https://github.com/go-gitea/gitea/pull/13585
"List-Unsubscribe": ctx.Issue.HTMLURL(),

"X-Mailer": "Gitea",
"X-Gitea-Reason": reason,
"X-Gitea-Sender": ctx.Doer.DisplayName(),
"X-Gitea-Recipient": recipient.DisplayName(),
Expand Down

0 comments on commit bc7f7f2

Please sign in to comment.