Reply by email
DETAILS: Tier: Free, Premium, Ultimate Offering: Self-managed
GitLab can be set up to allow users to comment on issues and merge requests by replying to notification emails.
Prerequisite
Make sure incoming email is set up.
How it works
Replying by email happens in three steps:
- GitLab sends a notification email.
- You reply to the notification email.
- GitLab receives your reply to the notification email.
GitLab sends a notification email
When GitLab sends a notification and Reply by email is enabled, the Reply-To
header is set to the address defined in your GitLab configuration, with the
%{key} placeholder (if present) replaced by a specific "reply key". In
addition, this "reply key" is also added to the References header.
You reply to the notification email
When you reply to the notification email, your email client:
- Sends the email to the
Reply-Toaddress it got from the notification email - Sets the
In-Reply-Toheader to the value of theMessage-IDheader from the notification email - Sets the
Referencesheader to the value of theMessage-IDplus the value of the notification email'sReferencesheader.
GitLab receives your reply to the notification email
When GitLab receives your reply, it looks for the "reply key" in the following headers, in this order:
-
Toheader -
Referencesheader -
Delivered-Toheader -
Envelope-Toheader -
X-Envelope-Toheader -
Receivedheader
If it finds a reply key, it leaves your reply as a comment on the entity the notification was about (issue, merge request, commit...).
For more details about the Message-ID, In-Reply-To, and References headers,
see RFC 5322.