Savarese.Org

Bugzilla 2.18 whineatnews.pl Patch


Patch icon

Bugzilla ships with a script called whineatnews.pl that will send an email to bug assignees, listing all new or reopened bugs. The default formatting isn't the most readable. The Apache Software Foundation uses a more readable format for the nag messages it sends committers. However, as far as I've been able to determine, the ASF doesn't make available that customization for download. I've attempted to recreate the same style of output the ASF uses by making some modifications to the whineatnews.pl script that ships with Bugzilla 2.18. The output looks like the following:

+---------------------------------------------------------------------------+
| Issue ID                                                                  |
|     +---------------------------------------------------------------------+
|     | Status: UNC=Unconfirmed NEW=New         ASS=Assigned                |
|     |         REO=Reopened    VER=Verified    (Skipped Closed/Resolved)   |
|     |   +-----------------------------------------------------------------+
|     |   | Severity: BLK=Blocker     CRI=Critical    MAJ=Major             |
|     |   |           MIN=Minor       NOR=Normal      ENH=Enhancement       |
|     |   |   +-------------------------------------------------------------+
|     |   |   | Date Posted                                                 |
|     |   |   |          +--------------------------------------------------+
|     |   |   |          | Description                                      |
|     |   |   |          |                                                  |
|    1|REO|MAJ|2004-12-29|The protocol droid talks too much.                |
|    2|ASS|ENH|2004-12-31|Customize engines to go .5 past light speed.      |
|    3|UNC|NOR|2005-01-04|I sensed a disturbance in the force.              |
|    4|VER|BLK|2005-01-02|That's no moon!                                   |
|    7|NEW|MIN|2005-02-19|Targeting software rebooted spontaneously.        |
|   13|NEW|CRI|2005-03-17|I lost my hand and need a replacement.            |
+-----+---+---+----------+--------------------------------------------------+
| Total    6 issues                                                         |
+---------------------------------------------------------------------------+

Instead of reporting only the new and reopened issues, this patch will report all but closed and resolved issues. It's easy enough to change the SQL query in the script to make it do something else, should you so desire.

Patch FileComment
whineatnews.pl-2.18-formattedwhine.patch Pretty prints issue report in a style almost identical to that used by the Apache Software Foundation. Closed and resolved issues are not reported.