Skip to content

Release notification email missing X-Gitlab-* and List-Id headers

Summary

When new release is created in a project of self-hosted Gitlab, email notification is being sent. Unfortunately, email notification is missing X-Gitlab and List-Id headers.

We utilize List-id header to sort notifications from Gitlab to specific folders (this is something which works with Gmail), without that header sorting is very hard and error prone.

Steps to reproduce

Create a new release.

Example Project

N/A

What is the current bug behavior?

Various email headers are missing.

What is the expected correct behavior?

Special X-Gitlab and List-id headers should be present.

Relevant logs and/or screenshots

Following headers are present in most notification from Gitlab:

X-GitLab-Project: project
X-GitLab-Project-Id: 127
X-GitLab-Project-Path: group/project
List-Id: group/project <127.project.group.gitlab.domain.com>
List-Unsubscribe: <https://gitlab.domain.com/-/sent_notifications/zzz/unsubscribe?force=true>,<mailto:g+zzz-unsubscribe@domain.com>
X-GitLab-Issue-ID: 0000
X-GitLab-Issue-IID: 1111
X-GitLab-NotificationReason: assigned
X-GitLab-Reply-Key: zzz

Release notification email does not have these headers.