Procmail Recipie For FreeBSD Lists?
parv
parv_fm at emailgroups.net
Thu Jul 3 09:43:11 PDT 2003
in message <000e01c3417b$407491b0$6e2a6ba5 at lc.ca.gov>,
wrote Drew Tomlinson thusly...
>
> 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
I use 'f-<list>' named folder. Change the following (part of larger recipes)
as you desire...
# get list id
:0
* ^List-ID:[ ]*.*\/<[a-z]+.*>
{ list_id = "$MATCH" }
# identify other lists on different criteria
# based on $list_id, assign $list
# ----
list=
# freebsd lists
:0
* list_id ?? ()<\/[a-z]+[-.a-z]+freebsd\.org>
{
# consider -gnats-submit list same as -bugs, but not -ports-bugs
:0
* list_id ?? ()(ports-bugs|cvs-ports)
{ list = f-ports }
:0 E
* list_id ?? ()(gnats-submit|bugs)
{ list = f-bugs }
# most interesting freebsd mailing lists
:0 E
* MATCH ?? ()\/(stable|ppc|cvs|mobile|questions|ports|java)
{ list = "f-${MATCH}" }
# dafault $list for/from any freebsd list
:0 E
{ list = f-misc }
}
# do other things
# file message
:0:
* list ?? ^^f-[a-z]+^^
$list
- Parv
--
A programmer, budding Unix system administrator, and amateur photographer
ISO employment...
http://www103.pair.com/parv/work/
More information about the freebsd-questions
mailing list