@@ -289,8 +289,8 @@ func composeIssueCommentMessages(ctx *mailCommentContext, lang string, recipient
289289 }
290290
291291 // Make sure to compose independent messages to avoid leaking user emails
292- msgID := createReference (ctx .Issue , ctx .Comment , ctx .ActionType )
293- reference := createReference (ctx .Issue , nil , activities_model .ActionType (0 ))
292+ msgID := generateMessageIDForIssue (ctx .Issue , ctx .Comment , ctx .ActionType )
293+ reference := generateMessageIDForIssue (ctx .Issue , nil , activities_model .ActionType (0 ))
294294
295295 var replyPayload []byte
296296 if ctx .Comment != nil {
@@ -362,7 +362,7 @@ func composeIssueCommentMessages(ctx *mailCommentContext, lang string, recipient
362362 return msgs , nil
363363}
364364
365- func createReference (issue * issues_model.Issue , comment * issues_model.Comment , actionType activities_model.ActionType ) string {
365+ func generateMessageIDForIssue (issue * issues_model.Issue , comment * issues_model.Comment , actionType activities_model.ActionType ) string {
366366 var path string
367367 if issue .IsPull {
368368 path = "pulls"
@@ -389,6 +389,10 @@ func createReference(issue *issues_model.Issue, comment *issues_model.Comment, a
389389 return fmt .Sprintf ("<%s/%s/%d%s@%s>" , issue .Repo .FullName (), path , issue .Index , extra , setting .Domain )
390390}
391391
392+ func generateMessageIDForRelease (release * repo_model.Release ) string {
393+ return fmt .Sprintf ("<%s/releases/%d@%s>" , release .Repo .FullName (), release .ID , setting .Domain )
394+ }
395+
392396func generateAdditionalHeaders (ctx * mailCommentContext , reason string , recipient * user_model.User ) map [string ]string {
393397 repo := ctx .Issue .Repo
394398
0 commit comments