From owner-cvs-all Mon Dec 3 3:58:46 2001 Delivered-To: cvs-all@freebsd.org Received: from albatross.prod.itd.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by hub.freebsd.org (Postfix) with ESMTP id 1AA8A37B417; Mon, 3 Dec 2001 03:58:41 -0800 (PST) Received: from dialup-209.245.140.32.dial1.sanjose1.level3.net ([209.245.140.32] helo=blossom.cjclark.org) by albatross.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16Ark7-0005D5-00; Mon, 03 Dec 2001 03:58:40 -0800 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.3) id fB3BwYK35183; Mon, 3 Dec 2001 03:58:34 -0800 (PST) (envelope-from cjc) Date: Mon, 3 Dec 2001 03:58:34 -0800 From: "Crist J . Clark" To: Josef Karthauser Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: Problem Splitting Branches with Procmail Message-ID: <20011203035834.A35129@blossom.cjclark.org> Reply-To: cjclark@alum.mit.edu References: <20011203022809.D31748@blossom.cjclark.org> <20011203112528.A1070@tao.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011203112528.A1070@tao.org.uk>; from joe@tao.org.uk on Mon, Dec 03, 2001 at 11:25:28AM +0000 X-URL: http://people.freebsd.org/~cjc/ Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Dec 03, 2001 at 11:25:28AM +0000, Josef Karthauser wrote: > On Mon, Dec 03, 2001 at 02:28:09AM -0800, Crist J . Clark wrote: > > I thought I had heard this discussed somewhere on this list before, > > but I can't find a thread in the archives. I finally got around to > > sorting commits from different branches into separate mailboxes using > > the "X-FreeBSD-CVS-Branch:" header. Then I immediately ran into the > > problem that followups people post to the lists do not have the above > > header and are not dropped into the right box. > > > > The "X-FreeBSD-CVS-Branch:" header is specifically there for this use, > > so I assume some people are using it? Is there a way to configure > > procmail(1) to figure this out and get replies in the same box with > > the original message? I can think of some very elaborate ways to try > > to do this, but I don't like them. Any procmail wizards have come nice > > recipes for this? > > Can't you get procmail to keep a database of message ids against the box > that it dropped the email it. New emails could be sorted into the same > box based on references. Yeah, that's the "very elaborate" way I thought about. Something like (writing this off of the top of my head, not tested in anyway), # Send email from the various FreeBSD lists to inboxes of their own :0 *^Sender: owner-\/[^@]+@FreeBSD.ORG { :0 *^Sender: owner-cvs-committers@FreeBSD\.org { :0 *^X-FreeBSD-CVS-Branch: \/.* { :0 hc | grep ^Message-ID: >> .msgids_cvs-committers :0 BSDcvs-${MATCH} } :0 *^Message_ID: \/.* *? grep "^Message-ID: ${MATCH}" .msgids_cvs-committers BSDcvs-${MATCH} } LISTNAME=${MATCH} :0 * LISTNAME??^\/[^@]+ BSD${MATCH} } But that seems kind of... well, kind of ugly. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message