On Sun, 13 Apr 1997, Philip Guenther wrote:
"|/usr/local/bin/procmail -Yf- || exit 75 #revjack"
You want procmail to return $EXITCODE to sendmail, but your .forward
file entry is setup to have the shell catch the non-zero status code
and just return 75. Solution: remove the "|| exit 75" part of the
.forward entry. You only really need that if your procmail binary
is on a NFS mounted filesystem.
Is there a "fix" for NFS partitions (something I can code into .forward or a
script it can run) that will allow using EXITCODE that won't be returned as
75 always?
Isn't that just what Philip said how to do?
My "~/.forward" is *like* this:
"|IFS=' '; exec /usr/local/nuglops/bin/procmail -Yf- fi #bodysurf"
And I can set EXITCODE is a recipe such as this to a value I want:
#
# Let's kill of the lamers emails right away.
#
# Check to see if this email is from a known lamer. If so, bounce it back
# to them with SENDMAIL EXITCODES and gzip the headers for examination.
# Once this is working as close to perfect as I like, I may get rid of
# keeping the headers.
#
:0
* ^(From|Received|Reply|Return).*(cyberpromo\.com|sallynet\.com|\
inter(r)amp\.com|psi\.(com|net)|babeview\.com|earthstar\.com|\
hotmail\.com|juno\.com)
{
EXITCODE = 77
:0h:
| gzip -fc >> lamer-headers.gz
}
Unless I am not following you :^)
Lates!
---------------------------------------------------------------------------
Tim <bodysurf(_at_)pobox(_dot_)com>
mailto:bodysurf(_at_)pobox(_dot_)com
Finger bodysurf(_at_)pobox(_dot_)com for my PGP public key (Bits 1024/KeyID
09DA5C49).
PGP Key FPrint (09/03/94): 4C 97 F1 FA 70 55 68 91 49 D1 AD F2 DD 63 0C 15
---------------------> Please PGP encrypt your email <---------------------