mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Tweak comment notify mail.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
parent
22f19eeb66
commit
96ff5583f6
1 changed files with 6 additions and 4 deletions
|
@ -89,13 +89,15 @@ if ($_REQUEST["add_Comment"]) {
|
||||||
#TODO: native language emails for users, based on their prefs
|
#TODO: native language emails for users, based on their prefs
|
||||||
# Simply making these strings translatable won't work, users would be
|
# 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
|
# getting emails in the language that the user who posted the comment was in
|
||||||
$body = "\nAuthor: " . username_from_sid($_COOKIE["AURSID"])
|
$body =
|
||||||
. "\nFrom http://aur.archlinux.org/packages.php?ID="
|
"from http://aur.archlinux.org/packages.php?ID="
|
||||||
. $_REQUEST["ID"]."\n\n" . $_POST['comment']
|
. $_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.";
|
. "\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);
|
$body = wordwrap($body, 70);
|
||||||
$bcc = implode(', ', $bcc);
|
$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);
|
@mail(' ', "AUR Comment for ".$row['Name'], $body, $headers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue