From owner-freebsd-questions@FreeBSD.ORG Thu Jul 3 10:12:36 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 E769037B40E for ; Thu, 3 Jul 2003 10:12:36 -0700 (PDT) Received: from blacklamb.mykitchentable.net (65-37-69-83.bras01.elk.ca.frontiernet.net [65.37.69.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA8724401A for ; Thu, 3 Jul 2003 10:12:22 -0700 (PDT) (envelope-from drew@mykitchentable.net) Received: from tagalong (unknown [165.107.42.110]) by blacklamb.mykitchentable.net (Postfix) with SMTP id 4491F3BF396; Thu, 3 Jul 2003 03:12:58 -0700 (PDT) Message-ID: <00de01c34186$445cc760$6e2a6ba5@lc.ca.gov> From: "Drew Tomlinson" To: , References: <000e01c3417b$407491b0$6e2a6ba5@lc.ca.gov><20030703160310.GA12934@sublevel3.org> <20030703161246.GA67762@mail.it.ca> Date: Thu, 3 Jul 2003 10:12:22 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Re: Procmail Recipie For FreeBSD Lists? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jul 2003 17:12:37 -0000 ----- Original Message ----- From: "Paul Chvostek" To: "Christian Stigen Larsen" Cc: Sent: Thursday, July 03, 2003 9:12 AM > 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. Thank you for your reply. I have tried implementing your suggestions to my specific environment but still do not have it quite right. I am using Maildir delivery to my home directory and also use Courier-IMAP. Thus a message to freebsd-questions ultimately needs to be delivered to Maildir/FreeBSD/Questions/new relative to my home directory. If this directory does not exist, I want it to be created. Based on your example, the messages were all added to a file called freebsd-questions in my home directory. I attempted to modify the recipe to achieve my desired results. Here's what I've put in my procmailrc: :0: * ^List-Id:[^<]+