procmail
[Top] [All Lists]

Re: Bouncing/refusing mail with EXITCODE

1997-04-16 06:01:00
"Who" == The Doctor {Who?} <The> writes:

"|/usr/local/bin/procmail -Yf- || exit 75 #revjack"

Who> Is there a "fix" for NFS partitions (something I can code into
Who> .forward or a script it can run) that will allow using EXITCODE
Who> that won't be returned as 75 always?

Adding an `exec' before the procmail invokation should do the trick:
"|exec /usr/local/bin/procmail -Yf- || exit 75 #revjack"

If the shell can find procmail, it replaces itself by procmail, and
the exit 75 is forgotten. If procmail isn't found, the shell will
return 75 and the mail is requeued.

(I believe I suggested this yesterday. Didn't my mail get through?)

-- 
Guy Geens <ggeens(_at_)iname(_dot_)com>
Home Page: http://www.elis.rug.ac.be/~ggeens
finger ggeens(_at_)elis(_dot_)rug(_dot_)ac(_dot_)be for PGP public keys (or use 
keyserver) 

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