diff --git a/services/mailer/mail.go b/services/mailer/mail.go index 14fcace1e..d86607295 100644 --- a/services/mailer/mail.go +++ b/services/mailer/mail.go @@ -403,7 +403,7 @@ func generateAdditionalHeaders(ctx *mailCommentContext, reason string, recipient // https://datatracker.ietf.org/doc/html/rfc2369 "List-Archive": fmt.Sprintf("<%s>", repo.HTMLURL()), - "X-Mailer": "Gitea", + "X-Mailer": "Forgejo", "X-Gitea-Reason": reason, "X-Gitea-Sender": ctx.Doer.Name, "X-Gitea-Recipient": recipient.Name, diff --git a/services/mailer/mail_test.go b/services/mailer/mail_test.go index d01d692b6..8fa45fd59 100644 --- a/services/mailer/mail_test.go +++ b/services/mailer/mail_test.go @@ -360,6 +360,7 @@ func TestGenerateAdditionalHeaders(t *testing.T) { expected := map[string]string{ "List-ID": "user2/repo1 ", "List-Archive": "", + "X-Mailer": "Forgejo", "X-Gitea-Reason": "dummy-reason", "X-Gitea-Sender": "user2", "X-Gitea-Recipient": "test",