procmail
[Top] [All Lists]

Re: MATCH

2001-10-18 00:26:37
* Butch Evans <butch(_at_)sheltonbbs(_dot_)com> spake thus:
I have the following recipe:

:0

* ^Subject: pmtest|^Subject: 
cybr|^FROM(_dot_)*deliberatus(_at_)my995internet(_dot_)com

{
        :0f
        |formail -i "X-match: $MATCH">>$KILLEDBOX
}


I have read the man page, as well as Jari Aalto's tips page.  I am
just not getting how to construct the regex in order to get a value
for $MATCH.  I have tried: 
*
(^Subject: pmtest|^Subject: 
cybr|^FROM(_dot_)*deliberatus(_at_)my995internet(_dot_)com)\/.*

as well as other variations on the above theme.  Am I going to have
to put something like
^Subject: pmtest\/.*|^Subject: cybr\/.*|.......
in order to get it to work?  Any other suggestions where a
tips/example page speaks to a guy who wonders why regular
expressions are called "regular"?

I know, it's a though one. AFAIK, how to use MATCH is very much
neglected in the various man pages... Here is one rule I have in my
.procmailrc:

:0:
* ^X-Mailing-List.*\/debian-(user|security|laptop)@
* MATCH ?? ()\/[^(_at_)]+
lists/$MATCH

It puts messages from the various debian lists in folders such as
~/Mail/lists/debian-user etc.

HTH


Regards,
Stig

-- 
brautaset.org
Registered Linux User 107343
_______________________________________________
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>