I took a couple hours… ok most of the day yesterday to fix a little issue that’s been bothering me for a while.
Bugzilla links inside email messages. I get countless messages where people reference bug 426175 but then don’t link to the bug. The other option is for the person to include the link in the email which is ugly and pushes the flow around https://bugzilla.mozilla.org/show_bug.cgi?id=426175 because there is a large link inside the text.
Despite emails not being HTML mail, for whatever reasons, I still want bugs to be linked in a reasonable manner when I’m looking at my mail. I couldn’t find an existing solution, though there likely is one hiding somewhere. So I started a new extension to solve my problem.
The Bugzilla Link Grabber Thing
I’m not good with names, another reason I probably shouldn’t have kids. (Offspring of Bryan Clark Jr.)
Here is a typical message that contains a mix of bugzilla urls and shorthand bug mentions. You can see the urls are long and a bit ugly, while the short hand link mentions (even though this example mentions the same bug) are not linked to the bug itself.
Before you view any mail the extension takes the long bugzilla urls and converts them into the shorthand form. It also linkifies any shorthand bugs into working urls.
Right now the extension only understands mozilla bugzilla and gnome bugzilla because that’s all I have accounts for. But others could be added and I was hoping to have a preferences dialog that allows you to add alternate bugzillas (see TODO). But otherwise it works great.
For xpi downloads, source, TODO, and more details take a look at the Bugzilla Link Grabber wiki page.
If you’re interested in this working for your copy of bugzilla or see some bugs in the code, don’t ask, please dive right in and fix things. Don’t forget to grab the STEEL extension or this one won’t work. Also it only works on thunderbird nightly builds right now; but maybe that’s something you can fix.
I put the extension source up at github, sorry if that’s not your RCS of choice. Anybody who creates patches to fix one of the TODO items is welcome to one of my remaining invites to github. I don’t really have anything else to give…