Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Oct 2012 03:56:15 +0100
From:      Erik Cederstrand <erik@cederstrand.dk>
To:        =?iso-8859-1?Q?Dag-Erling_Sm=F8rgrav?= <des@des.no>
Cc:        Eitan Adler <lists@eitanadler.com>, freebsd-arch@freebsd.org, giffunip@tutopia.com, Julien Laffaye <jlaffaye@freebsd.org>
Subject:   Re: How about finally replacing GNATS?
Message-ID:  <6838B465-F010-4C86-AF3C-CB96B3782F28@cederstrand.dk>
In-Reply-To: <8639118y6q.fsf@ds4.des.no>
References:  <1314468512.87152.YahooMailClassic@web113511.mail.gq1.yahoo.com> <4E593932.8060303@FreeBSD.org> <CAF6rxgnCPcisTFn37VtYsvHhttQvc1=DxXLuqq7kScJG3UL=cA@mail.gmail.com> <C76EF9E9-2F9A-4F49-9ADE-1C7074510BC4@cederstrand.dk> <86sj928vks.fsf@ds4.des.no> <4FB39F66-0434-43F1-9705-3C81CDF2A25F@cederstrand.dk> <86ehkm8s5v.fsf@ds4.des.no> <0EF669C7-0ED4-4BD4-9170-C49A7CA91603@cederstrand.dk> <8639118y6q.fsf@ds4.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_2C9DFA11-07B5-49DB-92E9-FCFAD9FF2ADB
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=iso-8859-1

Den 26/10/2012 kl. 09.55 skrev Dag-Erling Sm=F8rgrav <des@des.no>:
>=20
>> But maybe I could write a Python script to process emails received at
>> FreeBSD-gnats-submit@freebsd.org and shepherd them into Bugzilla?
>=20
> 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



--Apple-Mail=_2C9DFA11-07B5-49DB-92E9-FCFAD9FF2ADB
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii




--Apple-Mail=_2C9DFA11-07B5-49DB-92E9-FCFAD9FF2ADB--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6838B465-F010-4C86-AF3C-CB96B3782F28>