procmail
[Top] [All Lists]

Re: Odd behavior or incorrect recipe?

2002-04-18 21:17:35
Bart had suggested to Mike,

* ^X-Spam-Status:.*hits=\/[-0-9.]+

and Tony asked,

|  Shouldn't that leading "-" be at the end of the [], just to be on the safe
| side; ...

Just the opposite.  If the regexp enging is well designed, it doesn't matter.
If the regexp engine is buggy, putting the hyphen first (or immediately after
the caret if the set were complemented) is safer than saving it for the end.

| ... or has that never been an issue when it comes to procmail?

Procmail should be able to read it correctly either way.


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