LuKreme wrote:
Because you set (or tried to set) FQDN to $1 in the meantime.
Also, simply unsetting SWITCHRC will end the rcfile. If there are
no parent rcfiles to return to, then procmail will end and the
mail will be delivered to $DEFAULT. That probably isn't what you
want to achieve with the above sample code.
But if you are running this from the command-line, SWITCHRC will not
end processing, so you still need HOST.
I still need to know what "the cli" is. But your understanding
of how SWITCHRC works is flawed. The current file will not continue
if SWITCHRC is simply unset. See "man procmailrc".
I did:
Names an rcfile (relative to the current
directory) to
which processing will be switched. If the
named rcfile
doesn't exist or is not a normal file or /dev/
null then an
error will be logged ***and processing will
continue in the
current rcfile.***
I'm quite sure that it really ought to read "if the named rcfile doesn't
exist or is not a normal file _nor_ /dev/null, then an error will be
logged and processing will continue in the current rcfile." Do not
SWITCHRC=/dev/null
SWITCHRC=''
and
SWITCHRC # unsetting it
all terminate processing with delivery to $DEFAULT (and if that fails,
to $ORGMAIL)?
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail