procmail
[Top] [All Lists]

Re: Embedded comments

2003-05-24 07:37:52
Alan Clifford wrote,

:0B
* -1^1   .
*  140^1 <!--.*-->
*  1^0
action

Is the logic (and syntax) of this correct?

I can't think the logic through very well this morning, but here are two comments on syntax.

First, the regexp will bomb because procmail will take the opening angle bracket to indicate a size test and then object because what follows isn't a number.

 * 140^1 ()<!--.*-->

Second, I'm not sure that embedded HTML comments can't span newlines. You might need some incantation like this:

 * 140^1 ()<!--([^>]|$)*-->

And now, a word from our sponsor.



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