It is only basic, but works in this way for other platforms.
Could be enhanced to include all previous comments in 'References:'
This would require to have predictable 'Message-ID:' for notification mails.

Could also be used for out of date notifications
---
 web/lib/pkgbasefuncs.inc.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/web/lib/pkgbasefuncs.inc.php b/web/lib/pkgbasefuncs.inc.php
index 4d05b94..f53ff61 100644
--- a/web/lib/pkgbasefuncs.inc.php
+++ b/web/lib/pkgbasefuncs.inc.php
@@ -138,6 +138,8 @@ function pkgbase_add_comment($base_id, $uid, $comment) {
                           "Bcc: $bcc\r\n" .
                           "Reply-to: [email protected]\r\n" .
                           "From: [email protected]\r\n" .
+                          "In-Reply-To: <" . $row['Name'] . 
"@aur.archlinux.org>\r\n" .
+                          "References: <" . $row['Name'] . 
"@aur.archlinux.org>\r\n" .
                           "X-Mailer: AUR";
                @mail('undisclosed-recipients: ;', "AUR Comment for " . 
$row['Name'], $body, $headers);
        }
-- 
1.9.2

Reply via email to