summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-07-01 22:29:40 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2014-07-01 22:29:40 +0200
commit7b57e0e1b383bbad9a0fcbe405e3d0bb10164570 (patch)
tree06305ef7046cd92e691af658019b0070110085f5 /web
parent4186e42a399eb367d877c843d53bbc95d18e3229 (diff)
downloadaurweb-7b57e0e1b383bbad9a0fcbe405e3d0bb10164570.tar.xz
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: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web')
-rw-r--r--web/lib/pkgreqfuncs.inc.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/web/lib/pkgreqfuncs.inc.php b/web/lib/pkgreqfuncs.inc.php
index 748b849..852554b 100644
--- a/web/lib/pkgreqfuncs.inc.php
+++ b/web/lib/pkgreqfuncs.inc.php
@@ -109,8 +109,7 @@ function pkgreq_file($ids, $type, $merge_into, $comments) {
}
$thread_id = "<pkg-request-" . $request_id . "@aur.archlinux.org>";
$headers .= "From: notify@aur.archlinux.org\r\n" .
- "In-Reply-To: $thread_id\r\n" .
- "References: $thread_id\r\n" .
+ "Message-ID: $thread_id\r\n" .
"X-Mailer: AUR";
@mail($AUR_REQUEST_ML, "[PRQ#" . $request_id . "] " . ucfirst($type) .
" Request for " . $row['Name'], $body,