procmail
[Top] [All Lists]

Re: trying to optimize my recipe

2001-10-04 11:32:30
Rino Mardo <rmardo(_at_)yahoo(_dot_)com> writes:
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".

You left out the ".*" before the \/ in the Return-Path condition.

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


Philip Guenther
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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