From owner-freebsd-arch@FreeBSD.ORG Sun Oct 28 02:56:24 2012 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 47F99E3B; Sun, 28 Oct 2012 02:56:24 +0000 (UTC) (envelope-from erik@cederstrand.dk) Received: from csmtp2.one.com (csmtp2.one.com [91.198.169.22]) by mx1.freebsd.org (Postfix) with ESMTP id D0F458FC08; Sun, 28 Oct 2012 02:56:23 +0000 (UTC) Received: from [192.168.1.47] (unknown [176.222.238.90]) by csmtp2.one.com (Postfix) with ESMTPA id 4D822300D805; Sun, 28 Oct 2012 02:56:16 +0000 (UTC) Content-Type: multipart/mixed; boundary="Apple-Mail=_2C9DFA11-07B5-49DB-92E9-FCFAD9FF2ADB" Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: How about finally replacing GNATS? From: Erik Cederstrand In-Reply-To: <8639118y6q.fsf@ds4.des.no> Date: Sun, 28 Oct 2012 03:56:15 +0100 Message-Id: <6838B465-F010-4C86-AF3C-CB96B3782F28@cederstrand.dk> References: <1314468512.87152.YahooMailClassic@web113511.mail.gq1.yahoo.com> <4E593932.8060303@FreeBSD.org> <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> To: =?iso-8859-1?Q?Dag-Erling_Sm=F8rgrav?= X-Mailer: Apple Mail (2.1499) X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: Eitan Adler , freebsd-arch@freebsd.org, giffunip@tutopia.com, Julien Laffaye X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Oct 2012 02:56:24 -0000 --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 : >=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--