cvs: phpweb / bugs.php
| From: | Jani Taskinen | Date: | Thu, 01 Feb 2001 17:14:16 +0000 |
| Subject: | cvs: phpweb / bugs.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-3690@lists.php.net to get a copy of this message | ||
sniper Thu Feb 1 09:14:16 2001 EDT
Modified files:
/phpweb bugs.php
Log:
- Added a note to the emails sent to users to use the web interface
instead of replying to the email.
- Made reclassifying a bit lighter, ie. no emails are sent when only
bug type is changed.
Index: phpweb/bugs.php
diff -u phpweb/bugs.php:1.78 phpweb/bugs.php:1.79
--- phpweb/bugs.php:1.78 Tue Jan 23 18:36:55 2001
+++ phpweb/bugs.php Thu Feb 1 09:14:16 2001
@@ -623,13 +623,16 @@
$text.= "Bug Type: $ebug_type\n";
$text.= "Assigned To: $eassign\n";
$text.= "Comments:\n\n$ncomment" . get_old_comments ($id);
- $text.= "\nFull Bug description available at: http://bugs.php.net/?id=$id\n";
+ $text.= "\n\nATTENTION! Do NOT reply to this email!\n";
+ $text.= "To reply, use the web interface found at http://bugs.php.net/?id=$id&edit=2\n";
$text = stripslashes($text);
$esdesc = stripslashes($esdesc);
- /* mail bug originator */
- Mail($eemail, "PHP 4.0 Bug #$id Updated: $esdesc", $text, "From: Bug Database
<$destination>");
- Mail($destination, "PHP 4.0 Bug #$id Updated: $esdesc", $text, "From:
$user@php.net");
+ /* mail bug originator if status was changed or comment is not empty. */
+ if($estatus != $row[0] || $ncomment != "") {
+ Mail($eemail, "PHP 4.0 Bug #$id Updated: $esdesc", $text, "From: Bug Database
<$destination>");
+ Mail($destination, "PHP 4.0 Bug #$id Updated: $esdesc", $text, "From:
$user@php.net");
+ }
}
mysql_freeresult($result);
}