Author: Andreas Heigl (heiglandreas) Committer: GitHub (web-flow) Pusher: Girgias Date: 2024-02-25T16:52:53Z
Commit: https://github.com/php/web-master/commit/4791ab9e6e980a977c32cc4c988aa7a4f650b23d Raw diff: https://github.com/php/web-master/commit/4791ab9e6e980a977c32cc4c988aa7a4f650b23d.diff Update sender of notes email (#21) This updates the sender of the notes email to the nore...@php.net email-address that has the entered email-address of the user as name. That way the email should be recognized by the lists-server as nore...@php.net is a subscribed list-user Changed paths: M public/entry/user-note.php Diff: diff --git a/public/entry/user-note.php b/public/entry/user-note.php index 436f2c6..b4ec32e 100644 --- a/public/entry/user-note.php +++ b/public/entry/user-note.php @@ -132,7 +132,7 @@ function validateUser($user) { if (!$user) $user = "php-gene...@lists.php.net"; # strip spaces in email address, or will get a bad To: field $user = str_replace(' ','',$user); -mail($mailto,"note $new_id added to $sect",$msg,"From: $user\r\nMessage-ID: <note-$new...@php.net>", "-fnore...@php.net"); +mail($mailto,"note $new_id added to $sect",$msg,"From: \"$user\"<nore...@php.net>\r\nMessage-ID: <note-$new...@php.net>", "-fnore...@php.net"); //var_dump(is_spammer('127.0.0.1')); // false //var_dump(is_spammer('127.0.0.2')); // true \ No newline at end of file