diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-06-25 21:38:07 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-06-25 21:45:02 +0200 |
commit | 0e84667c331f36b48034def691cf7acb83709d1d (patch) | |
tree | 4673a99c111c2ca2e51ee2ad69ad410c4e2490ff /web | |
parent | c82fc025e279f8b757d4142333b3906774063e90 (diff) | |
download | aurweb-0e84667c331f36b48034def691cf7acb83709d1d.tar.xz |
Add threading headers to request notification mails
This allows for grouping mails that belong to the same request.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web')
-rw-r--r-- | web/lib/pkgbasefuncs.inc.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/lib/pkgbasefuncs.inc.php b/web/lib/pkgbasefuncs.inc.php index 68dd656..bab8f4c 100644 --- a/web/lib/pkgbasefuncs.inc.php +++ b/web/lib/pkgbasefuncs.inc.php @@ -1038,6 +1038,7 @@ function pkgbase_file_request($ids, $type, $merge_into, $comments) { $q.= $dbh->quote($merge_into) . ", " . $uid . ", "; $q.= $dbh->quote($comments) . ", UNIX_TIMESTAMP())"; $dbh->exec($q); + $request_id = $dbh->lastInsertId(); /* * Send e-mail notifications. @@ -1077,8 +1078,11 @@ function pkgbase_file_request($ids, $type, $merge_into, $comments) { if (!empty($bcc)) { $headers .= "Bcc: $bcc\r\n"; } + $thread_id = "<pkg-request-" . $request_id . "@aur.archlinux.org>"; $headers .= "Reply-to: noreply@aur.archlinux.org\r\n" . "From: notify@aur.archlinux.org\r\n" . + "In-Reply-To: $thread_id\r\n" . + "References: $thread_id\r\n" . "X-Mailer: AUR"; @mail($AUR_REQUEST_ML, "AUR " . ucfirst($type) . " Request for " . $row['Name'], $body, $headers); |