diff options
author | Ivan Fedorov <inbox@titaniumhocker.ru> | 2022-04-30 16:40:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-30 15:40:55 +0200 |
commit | d23f2203433617d1b4146db1e9359f7368915d63 (patch) | |
tree | 11ecb9de46efb9ff5cf181159995880b00eeec82 /services/mailer | |
parent | 8d34c2fab9a6816d0738925e1c8d1c6aa721cd1f (diff) | |
download | gitea-d23f2203433617d1b4146db1e9359f7368915d63.tar.gz gitea-d23f2203433617d1b4146db1e9359f7368915d63.zip |
Added X-Mailer header to outgoing emails (#19562)
- It's a non-standard mentioned in https://www.ietf.org/rfc/rfc2076.html#section-3.4
- This header makes emails filtering easier
Diffstat (limited to 'services/mailer')
-rw-r--r-- | services/mailer/mail.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/services/mailer/mail.go b/services/mailer/mail.go index a5b60f71ec..bdd7e25cab 100644 --- a/services/mailer/mail.go +++ b/services/mailer/mail.go @@ -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(), |