Philip Guenther writes on 28 March 1997 at 15:32:57
Michael Ghens <michael(_at_)spconnect(_dot_)com> writes:
Been seeing
TO_
FROM_
Been trying to look them up in the man pages, but have not found them.
Could someone explain what they are??
[...]
"^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.
Dan
------------------- message is author's opinion only ------------------
J. Daniel Smith <DanS(_at_)bristol(_dot_)com>
http://www.bristol.com/~DanS
Bristol Technology B.V. +31 33 450 50 50, ...51 (FAX)
Amersfoort, The Netherlands {info,jobs}(_at_)bristol(_dot_)com