S.A. Birl wrote:
Given the following:
:0 B
* ^.*charset=.*"(GB2312|big5|windows-1251|ISO-2022-JP)"
/dev/null
Does anyone know what | expands out to? At what point, regardless of the
rule, does | stop evaluating the condition? Does it stop after
whitespace, EOLN, after an ending " or ) ???
AFAIK its only bounded by parens. So for example:
* ^foo|bar baz fred
will be interpreted as 2 terms: "foo", "bar baz fred"
and this:
* ^foo (bar|baz|fred)
will be interpreted as "foo " followed by either one of the 3 terms
enclosed in the parens: "bar", "baz", "fred"
Would it be better to group each charset individually
(GB23212|big5|(windows-1251)|(ISO-2022-JP))
Not necessary, and would actually slow things down.
or leave the statement as is?
Yes.
dZ.
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail