procmail
[Top] [All Lists]

Re: understanding (mis)filtering

2001-12-12 13:32:47
When I wrote,

| > ^TO_ won't match on a string that ends in a hyphen, while ^TO will,

parv_(_at_)yahoo(_dot_)com asked,

| David, didn't you mean that ^TO_ won't match a string/address
| _containing_ a hyphen instead?

No, I meant it as I said it.  Look at the expansions of ^TO and ^TO_ in the
procmailrc(5) manual page.  When Stephen proposed changing ^TO (^TO_ didn't
exist yet) to add hyphens to the set of characters that it would consider to
be part of a word, I objected that it would break conditions where
^TOsomething was supposed to include matches on To: owner-something or To:
real-something.  His decision was to leave ^TO as it was and add ^TO_
(which, he felt, was the name he should have given to the macro in the first
place) as it is.

A medial hyphen is no problem, but ^TO_ will not match a string that *ends*
in a hyphen (nor in a letter of the alphabet, a digit, or an underscore).


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