cvs: peclweb /public_html/bugs report.php

From: Date: Fri, 10 Sep 2004 08:49:20 +0000
Subject: cvs: peclweb /public_html/bugs report.php
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-1807@lists.php.net to get a copy of this message
wez Fri Sep 10 04:49:20 2004 EDT Modified files: /peclweb/public_html/bugs report.php Log: Tweak bug report mail http://cvs.php.net/diff.php/peclweb/public_html/bugs/report.php?r1=1.7&r2=1.8&ty=u Index: peclweb/public_html/bugs/report.php diff -u peclweb/public_html/bugs/report.php:1.7 peclweb/public_html/bugs/report.php:1.8 --- peclweb/public_html/bugs/report.php:1.7 Fri May 28 07:14:51 2004 +++ peclweb/public_html/bugs/report.php Fri Sep 10 04:49:17 2004 @@ -172,19 +172,21 @@ } */ + $mid = sprintf("bug-%d-%08x@pecl.php.net", $cid, time()); + // 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-OS: " . stripslashes($in['php_os']) . "\n"; - $extra_headers.= "X-PHP-Status: Open\n"; - $extra_headers.= "Message-ID: <bug-$cid@pecl.php.net>"; + $extra_headers.= "X-PECL-Bug: $cid\n"; + $extra_headers.= "X-PECL-PHP-Version: " . stripslashes($in['php_version']) . "\n"; + $extra_headers.= "X-PECL-PHP-Category: " . stripslashes($in['bug_type']) . "\n"; + $extra_headers.= "X-PECL-PHP-OS: " . stripslashes($in['php_os']) . "\n"; + $extra_headers.= "X-PECL-PHP-Status: Open\n"; + $extra_headers.= "Message-ID: <$mid>"; // mail to package developers - mail($mailto, "#$cid [NEW]: $sdesc", $ascii_report."1\n-- \n$dev_extra", $extra_headers); + mail($mailto, "[PECL-BUG] #$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: PECL Bug Database <$mailfrom>\nX-PHP-Bug: $cid\nMessage-ID: <bug-$cid@pecl.php.net>"); + mail($email, "Bug #$cid: $sdesc", $ascii_report."2\n", "From: PECL Bug Database <$mailfrom>\nX-PHP-Bug: $cid\nMessage-ID: <$mid>"); header("Location: bug.php?id=$cid&thanks=4"); exit; }

« previous php.pecl.cvs (#1807) next »