PHP MIRRORS 4 CVS PHP BUGS WEB REPORT PHP INCLUDE FUNCTIONS INC
Date: Mon, 30 Jun 2003 12:05:48 -0000

Subject: cvs: php-bugs-web / report.php /include functions.inc
From: sniper@no-spam (Jani Taskinen)

sniper Mon Jun 30 08:05:48 2003 EDT
Modified files: /php-bugs-web report.php /php-bugs-web/include functions.inc Log:
Added some more X-headers to the emails.
Index: php-bugs-web/report.php diff -u php-bugs-web/report.php:1.35 php-bugs-web/report.php:1.36
--- php-bugs-web/report.php:1.35 Wed Jun 11 14:25:41 2003
+++ php-bugs-web/report.php Mon Jun 30 08:05:48 2003
@@no-spam -162,8 +162,16 @@no-spam " http://bugs.php.net/fix.php?id=$cid&r=$k\n";
}
+ // Set extra-headers + $extra_headers = "From: $protected_email\n";
+ $extra_headers.= "X-PHP-Bug: $cid\n";
+ $extra_headers.= "X-PHP-Version: " . stripslashes($in['php_version']) . "\n";

+ $extra_headers.= "X-PHP-Category: " . stripslashes($in['bug_type']) . "\n";

+ $extra_headers.= "X-PHP-Status: Open\n";
+ $extra_headers.= "Message-ID: <bug-$cid@no-spam>";
+
// mail to appropriate mailing lists - if (mail($mailto, "#$cid [NEW]: $sdesc", $ascii_report."1\n-- \n$dev_extra", "From: $protected_email\nX-PHP-Bug: $cid\nMessage-ID: <bug-$cid@no-spam>")) {

+ if (mail($mailto, "#$cid [NEW]: $sdesc", $ascii_report."1\n-- \n$dev_extra", $extra_headers)) {

// mail to reporter @no-spam "Bug #$cid: $sdesc", $ascii_report."2\n", "From: PHP Bug Database <$mailfrom>\nX-PHP-Bug: $cid\nMessage-ID: <bug-$cid@no-spam>");

Index: php-bugs-web/include/functions.inc diff -u php-bugs-web/include/functions.inc:1.79 php-bugs-web/include/functions.inc:1.80

--- php-bugs-web/include/functions.inc:1.79 Sun Jun 29 21:13:13 2003
+++ php-bugs-web/include/functions.inc Mon Jun 30 08:05:48 2003
@@no-spam -340,9 +340,12 @@no-spam $dev_text,
"From: $from\n".
"X-PHP-Bug: $bug[id]\n".
+ "X-PHP-Version: " . stripslashes($in['php_version']) . "\n" .
+ "X-PHP-Category: " . stripslashes($in['bug_type']) . "\n" .
+ "X-PHP-Status: {$in['status']}\n" .
"In-Reply-To: <bug-$bug[id]@no-spam>");
-
}
+
/* if a developer assigns someone else, let that other person know about it */

if ($edit == 1 && $in['assign'] && $in['assign'] != $bug['assign']
&& ($in['assign'] . "@no-spam") != $from) {