procmail
[Top] [All Lists]

Re: MATCH

2000-07-20 17:29:41
i am currently leaning the syntax of the procmailrc file and am
Sounds a bit like "/\/\/\/\/\/" ;-)

curious.  i've found descriptions of MATCH but i'm still a bit foggy on
it's concept.  is MATCH a keyword?  would someone mind taking a moment to
try to explain this?

Match is a procmail (environment){0,1} variable. It's set to the value of the 
regex following "\/" in  a recipe like this:
   :0
   * ^From\ \/[-+a-zA-Z0-9(_dot_)=]*(_at_)[-a-zA-Z0-9(_dot_)]*
   {
   From=$MATCH
   LOG=$From
   }                                                                           

This expression collects everything in the From_ header up to the following 
space. It woild fail if From_ was followed by a second space; this was for 
testing and it doesn't fail;-). It collects an email address with just one '@' 
- it will also fail if the email address contains a '%' (the percent hack), 
but I don't care about those.

                           

-----
Did I SELL OUT yet??

How many OUTs did you have?



_______________________________________________
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>
  • MATCH, jack wallen jr
    • Re: MATCH, John Summerfield <=