Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Marcus Andersson
aurweb
Commits
96ff5583
Commit
96ff5583
authored
Jan 23, 2009
by
Loui Chang
Browse files
Tweak comment notify mail.
Signed-off-by:
Loui Chang
<
louipc.ist@gmail.com
>
parent
22f19eeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
web/html/pkgedit.php
View file @
96ff5583
...
...
@@ -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
=
"
\n
Author: "
.
username_from_sid
(
$_COOKIE
[
"AURSID"
])
.
"
\n
From 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
---
\n
If 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
\n
Reply-to: nobody@archlinux.org
\n
From:aur-notify@archlinux.org
\n
X-Mailer: AUR
\n
"
;
$headers
=
"Bcc:
$bcc
\n
Reply-to: nobody@archlinux.org
\n
From:
aur-notify@archlinux.org
\n
X-Mailer: AUR
\n
"
;
@
mail
(
' '
,
"AUR Comment for "
.
$row
[
'Name'
],
$body
,
$headers
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment