procmail
[Top] [All Lists]

trying to optimize my recipe

2001-10-04 06:29:36
hi.  my present "~/.procmailrc" has separate recipes for all the mailing
lists i'm subscribed to.  an example is like this:


:0
* ^Return-path:(_dot_)*debian-user(_dot_)*(_at_)lists\(_dot_)debian\(_dot_)org
$MAILDIR/IN.debian-user/

:0
* ^Return-path:(_dot_)*postfix-users(_dot_)*(_at_)postfix\(_dot_)org
$MAILDIR/IN.postfix-users/

as you can see it can be optimized more to be a one-liner so this is
what i did:

lists="debian-user-request|owner-postfix-users"

:0
* $ ^Return-path: \/($lists)@
* MATCH ??   ()\/[^(_at_)]+
$MAILDIR/IN.$MATCH/

however when i view the procmail log file (i did a VERBOSE=all
LOGABSTRACT=all LOGFILE=from in my .procmailrc) and get my mails my
newly optimized recipe fails big time so what happens is all mails go to
a single inbox and not in "~/Mail/IN.xxx".

i've been reading TFM all day and i still couldn't make it work.  either
the answer is already staring at me or i'm dense.

what could i be missing to make my optimized recipe work?

-- 
"GUIs normally make it simple to accomplish simple actions and impossible
to accomplish complex actions."   --Doug Gwyn  (22/Jun/91 in comp.unix.wizards)

Attachment: pgpr8WmnCdbGP.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>