From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11589 invoked by uid 22791); 25 May 2005 00:24:10 -0000 Received: from lists.gnu.org (HELO lists.gnu.org) (199.232.76.165) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 25 May 2005 00:24:10 +0000 Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dajiy-0008NO-M1 for listarch-gnats-devel@sources.redhat.com; Tue, 24 May 2005 20:26:16 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DajiO-0008GO-Bc for help-gnats@gnu.org; Tue, 24 May 2005 20:25:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DajiL-0008Et-2b for help-gnats@gnu.org; Tue, 24 May 2005 20:25:38 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dajfu-0007d1-N9 for help-gnats@gnu.org; Tue, 24 May 2005 20:23:06 -0400 Received: from [216.27.182.174] (helo=wattes.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DajBd-0005Hk-PL for help-gnats@gnu.org; Tue, 24 May 2005 19:51:50 -0400 Received: from [172.17.13.23] (natint3.juniper.net [66.129.224.36]) by wattes.org (8.11.6/8.11.6) with ESMTP id j4ONpDA03824; Tue, 24 May 2005 16:51:13 -0700 Message-ID: <4293BDEB.7060907@wattes.org> Date: Wed, 25 May 2005 00:24:00 -0000 From: Mel Hatzis User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tim Buck References: <84B55544-0322-420B-B055-86C4499A8EAA@rrinc.com> In-Reply-To: <84B55544-0322-420B-B055-86C4499A8EAA@rrinc.com> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: help-gnats@gnu.org Subject: Re: Different mail-format or on-change action for particular Category X-BeenThere: help-gnats@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion about GNU GNATS List-Archive: List-Post: List-Help: List-Subscribe: , Sender: help-gnats-bounces+listarch-gnats-devel=sources.redhat.com@gnu.org Errors-To: help-gnats-bounces+listarch-gnats-devel=sources.redhat.com@gnu.org X-SW-Source: 2005-q2/txt/msg00040.txt.bz2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tim Buck wrote: > Is there any way to have GNATS use a different mail-format or apply > a different on-change action depending on the category of the PR, > or depending on whether or not a PR is marked confidential? Not currently, however I've developed exactly this functionality for my employer and it's proved to be extremely useful. I was planning on incorporating this to the official GNATS project over the next month or two. The way it works is that each mail-format definition has a mandatory 'trigger' associated with it (e.g. "on-create", "on-append", etc). Furthermore, each trigger can be specified with an optional condition constraining when the trigger is "fired". So, a mail-format definition in dbconfig looks like: # # This format is used for initial PRs that end up as pending PRs. # mail-format "initial-pr-notification-pending" { trigger on-create "Category==\"pending\"" from-address { "From:" | "From" } to-addresses { fixed-address "gnats-admin" "Reply-To:" | "From:" "Notify-List" } ...etc } The GNATS code is modified so that rather than sending email notifications of hardwired mail-format names, it sends email based on the triggers. You can have multiple mail-formats defined to trigger "on-create" for example (nominally with different trigger conditions) and the relevant notifications will be sent out based on which trigger conditions are applicable to the state of the PR. The mail-format names are essentially unused...they have been retained for potential logging/error reporting. - -- Mel Hatzis -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (Darwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCk73qNF74HmYqaSERAstTAJ0bVv/9CDUHbk3KQ9wcNysXkqwYiQCgmQQZ EwcMk5KY29IOSVAt4n8NyPs= =qQM7 -----END PGP SIGNATURE----- _______________________________________________ Help-gnats mailing list Help-gnats@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnats