How about finally replacing GNATS?

Erik Cederstrand erik at cederstrand.dk
Sun Oct 28 02:56:24 UTC 2012


Den 26/10/2012 kl. 09.55 skrev Dag-Erling Smørgrav <des at des.no>:
> 
>> But maybe I could write a Python script to process emails received at
>> FreeBSD-gnats-submit at freebsd.org and shepherd them into Bugzilla?
> 
> Yes.

Attached is a proof-of-concept script that takes a send-pr email and pushes it into Bugzilla. I have successfully created bugs in a test Bugzilla installation with a stock send-pr on FreeBSD, including adding attachments to the bug. It relies on the Bugzilla XML-RPC API (the JSON one was too buggy).

It needs to be adjusted to the actual FreeBSD Bugzilla setup (severity state names etc.) and how we want to map send-pr fields to Bugzilla fields, but at least it's a start.

To make it listen on a given email address, stick it into /etc/mail/aliases like this:

freebsd-gnats-submit:   "|/path/to/send_pr_to_bugzilla.py"

Thanks,
Erik


-------------- next part --------------




More information about the freebsd-arch mailing list