At 13:33 2003-12-15 -0600, Nick wrote:
* ^X-BOB.*
that be the syntax? or is it "greedy" like perl
I guess a more proper syntax would also include the colon
* ^X-BOB:.*
but I don't think this matters.
If the header is X-BOB:, include the colon, as it'll properly differentiate
it from "X-BOBETTE: or whatever. Additionally, ".*" at the end of a regexp
has ABSOLUTELY NO PURPOSE, unless used in a $MATCH construct. ".*" is zero
or more, so abolutely NOTHING will satisfy it - and if that's the case, why
bother looking for anything? It's a different matter to have .* in the
middle or beginning of a regexp (though, so long as you don't anchor a
regexp with ^, there's no need to have .* at the very beginning either).
Ask yourself why you're creating an X-(whatever) header. If it's for
looping, you should be using X-Loop:, since certain tools have SPECIFIC
support for retaining that on replies.
[snip]
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail