cvs: php-bugs-web / report.php /include functions.inc
| From: | Jani Taskinen | Date: | Mon, 30 Jun 2003 12:05:48 +0000 |
| Subject: | cvs: php-bugs-web / report.php /include functions.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-19039@lists.php.net to get a copy of this message | ||
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
@@ -162,8 +162,16 @@
" 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@bugs.php.net>";
+
// 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@bugs.php.net>")) {
+ if (mail($mailto, "#$cid [NEW]: $sdesc", $ascii_report."1\n-- \n$dev_extra",
$extra_headers)) {
// mail to reporter
@mail($email, "Bug #$cid: $sdesc", $ascii_report."2\n", "From: PHP Bug
Database <$mailfrom>\nX-PHP-Bug: $cid\nMessage-ID: <bug-$cid@bugs.php.net>");
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
@@ -340,9 +340,12 @@
$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]@bugs.php.net>");
-
}
+
/* if a developer assigns someone else, let that other person know about it */
if ($edit == 1 && $in['assign'] && $in['assign'] !=
$bug['assign']
&& ($in['assign'] . "@php.net") != $from) {