Reading at FS#9582, could be useful to add a link to account information page of the user who has flagged your package as out-of-date. Without using HTML in the code, this patch adds that link to the bottom of the mail body.
-- Andrea
From e63886f7ecc53a951df523d459b7251ddad8f970 Mon Sep 17 00:00:00 2001 From: Andrea Scarpino <[email protected]> Date: Wed, 10 Mar 2010 23:00:12 +0100 Subject: [PATCH] add link to account profile in out-of-date notification --- web/lib/pkgfuncs.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index 9a52beb..60f7d89 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -621,7 +621,7 @@ function pkg_flag ($atype, $ids, $action = True) { if (mysql_num_rows($result)) { while ($row = mysql_fetch_assoc($result)) { # construct email - $body = "Your package " . $row['Name'] . " has been flagged out of date by " . $f_name . ". You may view your package at:\nhttp://aur.archlinux.org/packages.php?ID=" . $row['ID']; + $body = "Your package " . $row['Name'] . " has been flagged out of date by " . $f_name . " [1]. You may view your package at:\nhttp://aur.archlinux.org/packages.php?ID=" . $row['ID'] . "\n\n[1] - http://aur.archlinux.org/account.php?Action=AccountInfo&ID=" . $f_uid; $body = wordwrap($body, 70); $headers = "To: ".$row['Email']."\nReply-to: [email protected]\nfrom:[email protected]\nx-mailer: PHP\nX-MimeOLE: Produced By AUR\n"; @mail(' ', "AUR Out-of-date Notification for ".$row['Name'], $body, $headers); -- 1.7.0.2
