procmail
[Top] [All Lists]

Re: recipe error

1997-08-12 08:45:00
era eriksson <era(_at_)iki(_dot_)fi> writes:
On Tue, 12 Aug 1997 11:36:50 +0300 (EET DST), I wrote:
Philip Guenther <guenther(_at_)gac(_dot_)edu> wrote:
GO0 <goo(_at_)artemide(_dot_)connectx(_dot_)it> writes:
You are right, the exact recipe was: ! -oi -t "$@"
You should not mix the -t flag and usernames on the command line to
sendmail.  In this case I believe that you don't want the -t flag.
Is the manual page incorrect?

Oops, of course it's not. The procmail man page says ! -oi -f "$@"

That's for when you're calling procmail with a command line like

        procmail -m rc.file envelope-sender recipient recipient...

That's the form of the command line that you'll end up with when you
use procmail as a sendmail mailer ("Mprocmail").  Note that the first
item in the "$@" in the action will be the envelope-sender, which will
then be taken as the argument to the -f option, while the other items
in the "$@" will be the recipients.  If you're calling procmail in some
other way (say, without the envelope-sender) then you'll need to adjust
the action to reflect such.


Philip Guenther

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