Commit 7b57e0e1 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

Set Message-ID when sending package request emails



When sending the first notification email that belongs to a certain
package request, set the Message-ID instead of the In-Reply-To and
References headers. This is not only more RFC compliant but also fixes
thread views in several clients, such as Pipermail.

Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
parent 4186e42a
...@@ -109,8 +109,7 @@ function pkgreq_file($ids, $type, $merge_into, $comments) { ...@@ -109,8 +109,7 @@ function pkgreq_file($ids, $type, $merge_into, $comments) {
} }
$thread_id = "<pkg-request-" . $request_id . "@aur.archlinux.org>"; $thread_id = "<pkg-request-" . $request_id . "@aur.archlinux.org>";
$headers .= "From: notify@aur.archlinux.org\r\n" . $headers .= "From: notify@aur.archlinux.org\r\n" .
"In-Reply-To: $thread_id\r\n" . "Message-ID: $thread_id\r\n" .
"References: $thread_id\r\n" .
"X-Mailer: AUR"; "X-Mailer: AUR";
@mail($AUR_REQUEST_ML, "[PRQ#" . $request_id . "] " . ucfirst($type) . @mail($AUR_REQUEST_ML, "[PRQ#" . $request_id . "] " . ucfirst($type) .
" Request for " . $row['Name'], $body, " Request for " . $row['Name'], $body,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment