mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	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
This commit is contained in:
		@@ -367,6 +367,7 @@ func generateAdditionalHeaders(ctx *mailCommentContext, reason string, recipient
 | 
				
			|||||||
		//"List-Post": https://github.com/go-gitea/gitea/pull/13585
 | 
							//"List-Post": https://github.com/go-gitea/gitea/pull/13585
 | 
				
			||||||
		"List-Unsubscribe": ctx.Issue.HTMLURL(),
 | 
							"List-Unsubscribe": ctx.Issue.HTMLURL(),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							"X-Mailer":                  "Gitea",
 | 
				
			||||||
		"X-Gitea-Reason":            reason,
 | 
							"X-Gitea-Reason":            reason,
 | 
				
			||||||
		"X-Gitea-Sender":            ctx.Doer.DisplayName(),
 | 
							"X-Gitea-Sender":            ctx.Doer.DisplayName(),
 | 
				
			||||||
		"X-Gitea-Recipient":         recipient.DisplayName(),
 | 
							"X-Gitea-Recipient":         recipient.DisplayName(),
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user