summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2009-01-23 06:27:59 +0100
committerLoui Chang <louipc.ist@gmail.com>2009-01-23 06:27:59 +0100
commit96ff5583f6c1246aa488c2e83c3de861636f56d8 (patch)
tree93c45ba8340b6b7c0fb2536c381103b6ffbce3b0
parent22f19eeb66b5970f613d27dd689eab10291a8285 (diff)
downloadaur-96ff5583f6c1246aa488c2e83c3de861636f56d8.tar.gz
aur-96ff5583f6c1246aa488c2e83c3de861636f56d8.tar.xz
Tweak comment notify mail.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
-rw-r--r--web/html/pkgedit.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/web/html/pkgedit.php b/web/html/pkgedit.php
index e73899a7..5907d2ca 100644
--- a/web/html/pkgedit.php
+++ b/web/html/pkgedit.php
@@ -89,13 +89,15 @@ if ($_REQUEST["add_Comment"]) {
#TODO: native language emails for users, based on their prefs
# Simply making these strings translatable won't work, users would be
# getting emails in the language that the user who posted the comment was in
- $body = "\nAuthor: " . username_from_sid($_COOKIE["AURSID"])
- . "\nFrom http://aur.archlinux.org/packages.php?ID="
- . $_REQUEST["ID"]."\n\n" . $_POST['comment']
+ $body =
+ "from http://aur.archlinux.org/packages.php?ID="
+ . $_REQUEST["ID"] . "\n"
+ . username_from_sid($_COOKIE["AURSID"]) . " wrote:\n\n"
+ . $_POST['comment']
. "\n\n---\nIf you no longer wish to receive notifications about this package, please go the the above package page and click the UnNotify button.";
$body = wordwrap($body, 70);
$bcc = implode(', ', $bcc);
- $headers = "Bcc: $bcc\nReply-to: nobody@archlinux.org\nFrom:aur-notify@archlinux.org\nX-Mailer: AUR\n";
+ $headers = "Bcc: $bcc\nReply-to: nobody@archlinux.org\nFrom: aur-notify@archlinux.org\nX-Mailer: AUR\n";
@mail(' ', "AUR Comment for ".$row['Name'], $body, $headers);
}