procmail
[Top] [All Lists]

Re: Header Macros

1997-03-29 09:29:13
"J. Daniel Smith" <DanS(_at_)bristol(_dot_)com> writes:
Philip Guenther writes on 28 March 1997 at 15:32:57
"^TO" matches destination headers (e.g., To:) that contain the
following _word_ (i.e., "^TOfoo" matches "To: baz, foo, quux" and "To:
bar-foo"), while "^TO_" matches destinations headers that contain the
following _address_ (i.e., "^TO_baz" matches "To: foo, baz, quux" but
*not* "To: foo-baz").  "^FROM_DAEMON" and "^FROM_MAILER" match messages

Maybe I haven't read previous messages on this topic...but from this
explanation, it would seem to me that most people probably want to
replace most usages of ^TO with ^TO_.  That is, I suspect a lot of
people do simple processing such as 
 :0:
 * ^TOprocmail
 procmail
which will also match "To: another-procmail-list", correct?  That is,
most people are interested in matching addresses, not words.

Well, yes.  However, the extra false matches are a small enough problem
that no one is particularly worried about it.

Philip Guenther