Consistently use the following headers in notification emails:

    Reply-to: [email protected]
    From: [email protected]

Signed-off-by: Lukas Fleischer <[email protected]>
---
 web/lib/acctfuncs.inc.php    |  4 ++--
 web/lib/pkgbasefuncs.inc.php | 12 ++++++------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php
index 6ac34a0..5b907dc 100644
--- a/web/lib/acctfuncs.inc.php
+++ b/web/lib/acctfuncs.inc.php
@@ -656,8 +656,8 @@ function send_resetkey($email, $subject, $body) {
                          "resetkey={$resetkey}";
                $headers = "MIME-Version: 1.0\r\n" .
                           "Content-type: text/plain; charset=UTF-8\r\n";
-                          "Reply-to: [email protected]\r\n" .
-                          "From: [email protected]\r\n" .
+                          "Reply-to: [email protected]\r\n" .
+                          "From: [email protected]\r\n" .
                           "X-Mailer: PHP\r\n" .
                           "X-MimeOLE: Produced By AUR";
                @mail($email, $subject, $body, $headers);
diff --git a/web/lib/pkgbasefuncs.inc.php b/web/lib/pkgbasefuncs.inc.php
index 34ff302..9f80ef2 100644
--- a/web/lib/pkgbasefuncs.inc.php
+++ b/web/lib/pkgbasefuncs.inc.php
@@ -137,8 +137,8 @@ function pkgbase_add_comment($base_id, $uid, $comment) {
                $headers = "MIME-Version: 1.0\r\n" .
                           "Content-type: text/plain; charset=UTF-8\r\n" .
                           "Bcc: $bcc\r\n" .
-                          "Reply-to: [email protected]\r\n" .
-                          "From: [email protected]\r\n" .
+                          "Reply-to: [email protected]\r\n" .
+                          "From: [email protected]\r\n" .
                           "In-Reply-To: $thread_id\r\n" .
                           "References: $thread_id\r\n" .
                           "X-Mailer: AUR";
@@ -385,8 +385,8 @@ function pkgbase_flag($atype, $base_ids) {
                                $body = wordwrap($body, 70);
                                $headers = "MIME-Version: 1.0\r\n" .
                                           "Content-type: text/plain; 
charset=UTF-8\r\n" .
-                                          "Reply-to: [email protected]\r\n" 
.
-                                          "From: [email protected]\r\n" 
.
+                                          "Reply-to: 
[email protected]\r\n" .
+                                          "From: [email protected]\r\n" 
.
                                           "X-Mailer: PHP\r\n" .
                                           "X-MimeOLE: Produced By AUR";
                                @mail($row['Email'], "AUR Out-of-date 
Notification for ".$row['Name'], $body, $headers);
@@ -497,8 +497,8 @@ function pkgbase_delete ($atype, $base_ids, $merge_base_id) 
{
                        $headers = "MIME-Version: 1.0\r\n" .
                                   "Content-type: text/plain; 
charset=UTF-8\r\n" .
                                   "Bcc: $bcc\r\n" .
-                                  "Reply-to: [email protected]\r\n" .
-                                  "From: [email protected]\r\n" .
+                                  "Reply-to: [email protected]\r\n" .
+                                  "From: [email protected]\r\n" .
                                   "X-Mailer: AUR";
                        @mail('undisclosed-recipients: ;', "AUR Package 
deleted: " . $pkgbase_name, $body, $headers);
                }
-- 
1.9.3

Reply via email to