Bugzilla Tips

February 5, 2010

Client-Side Bugmail Filtering

Filed under: Uncategorized — gervmarkham @ 10:25 am

Everyone who uses Bugzilla seriously gets a lot of bugmail. Bugzilla provides controls so you can restrict the amount of it you get. But did you know it also adds headers to each email so you can do further filtering on the client side?

Here are a sample set of headers, with explanations:

X-Bugzilla-Reason: CC (the role you have on the bug which led to you getting the mail; other values are AssignedTo, QAcontact)
X-Bugzilla-Type: changed (other value is ‘new’)
X-Bugzilla-Watch-Reason: QAcontact places@firefox.bugs (the role of the person you are watching, and who it is, if you are getting bugmail for that reason)
X-Bugzilla-Who: gerv@mozilla.org (the person who made the change)
X-Bugzilla-Changed-Fields: AssignedTo Status (the names of the fields changed by the update)
X-Bugzilla-URL: https://bugzilla.mozilla.org/

The following headers give the values of particular bug fields after the change in question has been made.

X-Bugzilla-Classification: Client Software
X-Bugzilla-Product: Firefox
X-Bugzilla-Component: Places
X-Bugzilla-Keywords: crash, regression
X-Bugzilla-Severity: major
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: mconnor@mozilla.com
X-Bugzilla-Target-Milestone: Firefox 3.6

You can use any of these, or a combination, as a trigger to do something different with a bugmail – file it somewhere, tag it, mark it as read or delete it.

To set up filters in Thunderbird 3, go to Tools | Message Filters… . If you click “New” to add a new filter, and then scroll down to the bottom of the list of headers and other values you can filter on, you will find “Customize…” This allows you to enter custom header values, such as the X-Bugzilla headers above.

About these ads

The Rubric Theme. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: