procmail
[Top] [All Lists]

Re: Question on $MATCH

2002-08-29 00:21:40
in message <029601c24c14$6dab3970$6819a8c0(_at_)isolution(_dot_)nl>,
wrote Ruud H.G. van Tol thusly...

parv skribis:

to repent, below is the corrected moderately cautious version...

:0
* ^Subject:[  ]*\[\/[^]]+\]
{
  :0:
  * MATCH  ??  ()\/[^]]+
  IN-${MATCH}
}


Is (almost)[1] the same as (at least in recent versions):
  :0:
  * ^Subject:[  ]*\[\/[^]]+\]
  * MATCH ?? ()\/[^]]+
  IN-${MATCH}

recently i have been creating recipe/s/ which come into existence
only after satisfying top controlling condition(s)...

  :0
  * blah
  {
    :0
    * recipe 1
    ...

    :0:
    * recipe 2
    ...
  }


out of that habit, comes the above.


which is the same as 
  :0:
  * ^Subject:[  ]*\[\/[^]]+
  IN-${MATCH}

not really, to pick nits, as that will match...

  Subject: [polka ; in pennsylvania
  Subject: [polka-dot bikini & tie


...in case of missing ']', wouldn't the above recipe will match both
subjects "polka.+nia" and "polka.+tie".  otoh, this may be
reasonable enough for the OP.


  - parv

-- 

_______________________________________________
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>