procmail
[Top] [All Lists]

Re: Recipe matching

2001-12-18 10:20:30
When "High Flight" had this condition,

* ^Received:[.ch>$]

Paul Chvostek responded,

| Um, no...  As I was forcibly taught recently, square brackets indicate
| a *range*, so the above condition would match *every* email that came
| in with a Received line in the headers.

As Dallman Ross started to explain, it would not.  Periods and dollar signs
are literal if they're inside brackets, so there would be a match only if a
Received: header had, immediately after the colon with no intervening space,
a period, a c or a C, an h or an H, a right-side angle bracket, or a dollar
sign.  Almost always there will be a space or a tab there, and if the
whitespace character is missing the next character is sure to be an f (the
first letter of "from"), so that condition will pretty much never match any
message at all.

Square brackets indicate a *group*; a hyphen inside square brackets (with
exceptions) indicates a range.



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