summaryrefslogtreecommitdiffstats
path: root/web/html/pkgedit.php
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2008-12-21 16:28:44 -0500
committerCallan Barrett <wizzomafizzo@gmail.com>2008-12-22 13:20:40 +0900
commit0793eca14f98144c3d5d022f58bb0b2fa3a74a5c (patch)
tree08d6958ef32d347f75a7121b3bc2f409b4c2ad87 /web/html/pkgedit.php
parentae1c424c95f7912351f776096205e2a7b0b8952c (diff)
downloadaurweb-0793eca14f98144c3d5d022f58bb0b2fa3a74a5c.tar.xz
Modify and fix typos in comment notification email.
Signed-off-by: Loui Chang <louipc.ist@gmail.com> Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Diffstat (limited to 'web/html/pkgedit.php')
-rw-r--r--web/html/pkgedit.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/web/html/pkgedit.php b/web/html/pkgedit.php
index 2296470..1b490c5 100644
--- a/web/html/pkgedit.php
+++ b/web/html/pkgedit.php
@@ -90,11 +90,14 @@ 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 = "A comment has been added to ".$row['Name']." by " . username_from_sid($_COOKIE["AURSID"]) . ", you may view it at:\nhttp://aur.archlinux.org/packages.php?ID=".$_REQUEST["ID"]."\n\n\"" . $_POST['comment'] . "\"\n\n---\nYou received this e-mail because you chose to receive notifications of new comments on this package, if you no longer wish to recieve notifications about this package, please go the the above package page and click the UnNotify button.";
+ $body = "\nAuthor: " . username_from_sid($_COOKIE["AURSID"])
+ . "\nFrom http://aur.archlinux.org/packages.php?ID="
+ . $_REQUEST["ID"]."\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: PHP\nX-MimeOLE: Produced By AUR\n";
- @mail(' ', "AUR Comment Notification for ".$row['Name'], $body, $headers);
+ $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);
}
} else {