procmail
[Top] [All Lists]

Re: regex syntax question

2004-03-19 09:56:41
Toen ik Dallman Ross kietelde, kwam er dit uit:
Ruud H.G. van Tol:

  { B_head = $MATCH     ANYCHAR128  # 'shroom 'em out }

YM:

   { B_head = $MATCH     ANYCHAR128  } # 'shroom one out

(the # makes the } comment)

I don't see any errors in my log from running it as I had it.
But I suppose that's because procmail doesn't care if the trailing
closing brace is missing.  Hmm.

I didn't actually test it, but I did get "Missing closing brace" 
a few times yesterday with similar layout.



  :0 Eb  # Else, body is fewer than $ANYCHAR128 bytes long
  B_head=| cat

or (in the best procmail-only tradition)

    :0E
    * B ?? ^^\/.*
    { B_head = $MATCH }

(untested, as usual)

-- 
Affijn, Ruud

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