procmail
[Top] [All Lists]

Re: procmail question about ^TO

1996-06-04 14:40:49
At 15:32 96-06-03, Sebastian Bernheim wrote:

I've looked through the headers and the only thing that contains
the right string to trip the ^TO{dummy|sebby|sbern|dummy} condition is the
From: field.

Akkkk!  Don't know why I didn't spot the problem before (or why
procmail doesn't holler).  You've got the wrong syntax -- the braces
should be parenthesis:
    * ^TO(dummy|sebby|sbern|dummy)
or
    * ^TO_(dummy|sebby|sbern|dummy)

And you really don't need the duplicated 'dummy' entries....

If you have access to the sendmail cf file, you can address this, but
the fix is beyond my ability to explain.

I do have access to sendmail.cf, and I mess with it all the time, but I
really want something that is within the user's ability to tinker with for
this end of things so they can add and delete these addresses themselves,
and possibly some of them will learn to use procmail themselves to run
autoresponders and the like.  I hope.

If you tweak the headers that sendmail adds on local delivery to add an
X-Envelope-To: header, then the user can deal with everything else
themselves.  Procmail includes looking for X-Envelope-To in it's
expansion of the various ^TO macros....  You (as system admin) will
have less work to do if the X-Envelope-To header is added.

--Hal
Hal Wine <hal(_at_)dtor(_dot_)com>     voice: 510/482-0597


<Prev in Thread] Current Thread [Next in Thread>