cvs: php-bugs-web /scripts email-bug-summaries

From: Date: Mon, 02 Jun 2008 19:22:16 +0000
Subject: cvs: php-bugs-web /scripts email-bug-summaries
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-1850@lists.php.net to get a copy of this message
philip Mon Jun 2 19:22:16 2008 UTC Modified files: /php-bugs-web/scripts email-bug-summaries Log: Removed feature requests from email body (assigned FR still sent) Added a feature request count # FR removed from body due to overly large email size http://cvs.php.net/viewvc.cgi/php-bugs-web/scripts/email-bug-summaries?r1=1.14&r2=1.15&diff_format=u Index: php-bugs-web/scripts/email-bug-summaries diff -u php-bugs-web/scripts/email-bug-summaries:1.14 php-bugs-web/scripts/email-bug-summaries:1.15 --- php-bugs-web/scripts/email-bug-summaries:1.14 Mon Mar 24 14:34:15 2008 +++ php-bugs-web/scripts/email-bug-summaries Mon Jun 2 19:22:15 2008 @@ -15,13 +15,17 @@ $version = ''; } if($num=mysql_num_rows($result)) { - $body = " PHP $version Bug Database summary - http://bugs.php.net\n\n"; - $body .= " Num Status Summary ($num total including feature requests)\n"; + $body = ""; $last_group = ""; + $feature_count = 0; while($row = mysql_fetch_assoc($result)) { if($row['status']=='Assigned') { $ass[$row['assign']][$row['id']] = $row['sdesc']; } + if ($row['bug_type'] === 'Feature/Change Request') { + ++$feature_count; + continue; + } if($last_group!=$row['bug_type']) { $last_group = $row['bug_type']; $body .= "===============================================[".$row['bug_type']."]"; @@ -34,7 +38,11 @@ $body .= " ".$row['sdesc']."\n"; } mysql_free_result($result); - $body .= "\nAssigned bugs: (reminders sent)\n"; + $body .= "\nAssigned bugs and feature requests (reminders sent):\n"; + + $body_header = " PHP $version Bug Database summary - http://bugs.php.net/\n\n"; + $body_header .= " Num Status Summary ($num total -- which includes $feature_count feature requests)\n"; + while(list($k,$v)=each($ass)) { while(list($kk,$vv)=each($v)) { $body .= "$k\t\t$kk: $vv\n"; @@ -49,7 +57,7 @@ } } if ($version) { - mail("internals@lists.php.net","PHP $version Bug Summary Report",$body,"From: internals@lists.php.net"); + mail("internals@lists.php.net","PHP $version Bug Summary Report",$body_header . $body,"From: internals@lists.php.net"); } } ?>

« previous php.webmaster (#1850) next »