[SGVLUG] Who /really/ knows procmaIl around here?
Tom Emerson
osnut at pacbell.net
Mon Jul 3 08:06:03 PDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I've got procmail set up to separate "discussion list" messages as follows:
:0
* ^List-id:.*<some.list.id>
.Discussion\ Groups.listname/
:0
* ^List-id:.*<another.list>
.Discussion\ Groups.othername/
:0
* ^List-id:
.Discussion\ Groups/
The last is a "catch all" that puts any message that comes from a list
into the top-level directory of my e-mail folders dedicated to list
management. Whenever I join a new list, I essentially have to edit this
file to set a specific target other than "Discussion Groups".
What I'm wondering is, is there a way to have the procmail script look
for the actual ID and use that as the target? Something along the lines
of this:
:0
* ^List-id:.*[look for text in "<...>"; extract up to first "." char]
.Discussion\ Groups.[extracted item]
this would be my new "catch all" rule, so when I join a new list, I
don't specifically have to edit procmail unless I want to put this
somewhere else (such as this list -- I have it a couple levels down from
"discussion groups")
- --
Top o' the Blog: It's good to be the King...
http://osnut.homelinux.net/mtblog/ya_index.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEqTJbV/YHUqq2SwsRAjI+AJ9rqtxgFW9J7bOlE+cCD9YPozUo/gCeNlNh
924YuG3QdWsw1rpM/vQb/3Q=
=LrfT
-----END PGP SIGNATURE-----
More information about the SGVLUG
mailing list