Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jul 2003 12:12:46 -0400
From:      Paul Chvostek <paul+fbsd@it.ca>
To:        Christian Stigen Larsen <csl@sublevel3.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Procmail Recipie For FreeBSD Lists?
Message-ID:  <20030703161246.GA67762@mail.it.ca>
In-Reply-To: <20030703160310.GA12934@sublevel3.org>
References:  <000e01c3417b$407491b0$6e2a6ba5@lc.ca.gov> <20030703160310.GA12934@sublevel3.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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                                             <paul@it.ca>
  it.canada                                            http://www.it.ca/
  Free PHP web hosting!                            http://www.it.ca/web/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030703161246.GA67762>