From owner-freebsd-questions@FreeBSD.ORG Thu Jul 3 09:13:05 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D61437B401 for ; Thu, 3 Jul 2003 09:13:05 -0700 (PDT) Received: from haggis.it.ca (haggis.it.ca [216.126.86.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BE6444003 for ; Thu, 3 Jul 2003 09:13:02 -0700 (PDT) (envelope-from paul@haggis.it.ca) Received: from haggis.it.ca (paul@localhost [127.0.0.1]) by haggis.it.ca (8.12.9/8.12.9) with ESMTP id h63GCkU9071592; Thu, 3 Jul 2003 12:12:46 -0400 (EDT) (envelope-from paul@haggis.it.ca) Received: (from paul@localhost) by haggis.it.ca (8.12.9/8.12.6/Submit) id h63GCkun071591; Thu, 3 Jul 2003 12:12:46 -0400 (EDT) (envelope-from paul) Date: Thu, 3 Jul 2003 12:12:46 -0400 From: Paul Chvostek To: Christian Stigen Larsen Message-ID: <20030703161246.GA67762@mail.it.ca> References: <000e01c3417b$407491b0$6e2a6ba5@lc.ca.gov> <20030703160310.GA12934@sublevel3.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030703160310.GA12934@sublevel3.org> User-Agent: Mutt/1.4.1i cc: freebsd-questions@freebsd.org Subject: Re: Procmail Recipie For FreeBSD Lists? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jul 2003 16:13:05 -0000 On Thu, Jul 03, 2003 at 08:53:30AM -0700, Drew Tomlinson wrote: > > About a year or two ago, someone posted his recipe for sorting FreeBSD > lists. This particular one was nice in that it extracted the list name > from the "From" line (I think) and then created the appropriate folder > if it didn't exist. So freebsd-questions list items were put in the > 'questions' folder, freebsd-stable in the 'stable' folder, and so on. I > have search the archives for this post for the past two days but have > been unsuccessful. I've tried to write it myself but this is not my > area of expertise. Does anyone have such a recipe they are willing to > share? Easy enough: :0: * List-Id:[^<]+<\/freebsd-[^.] $MATCH This will store each list in a folder prefixed by "freebsd-". If you want freebsd-questions to be stored in a folder named "questions", just move the \/ (which marks the beginning of the MATCH variable) to after the "freebsd-". And if you want it to support other RFC2919-compliant lists (that is, ones which include the "List-Id:" header), simply remove "freebsd-" from the recipe. -- Paul Chvostek it.canada http://www.it.ca/ Free PHP web hosting! http://www.it.ca/web/