procmail
[Top] [All Lists]

Re: Bouncing/refusing mail with EXITCODE

1997-04-18 12:41:00
On 15 Apr 1997 16:48:47 +0200, Guy Geens 
<Guy(_dot_)Geens(_at_)elis(_dot_)rug(_dot_)ac(_dot_)be> said:

Or, change the .forward file to:
"| exec /usr/local/bin/procmail -Yf- || exit 75 #revjack"
   ^^^^
If procmail is executed, it will replace the shell, so the exit 75 is
never executed. If the procmail binary cannot be found, the shell will
return exitcode 75.

Alas, this doesn't work.  All the bourne-like shells I know (including
sh, zsh and bash) never return from the exec, even if it fails.

    $ sh -c 'exec nonesuch || echo here'; echo returned $?
    exec: nonesuch: not found
    returned 1

-- 
Roderick Schertler
roderick(_at_)argon(_dot_)org