procmail
[Top] [All Lists]

Re: Simple Bozo-Filter Example? (fwd)

1997-02-05 17:45:14
Tim,

Would you post your sample .forward to the procmail list - we can't 
see it otherwise.

Sorry, I made a couple of ommissions in that example.  Too much "cutting
and pasting" and not enough double-checking :^(.

Thanks,
Jeff

#
# NOTE #2:  SENDMAIL EXITCODES will not work properly unless the format
#       of your "~/.forward" file is written properly (e.g., you
#       must not allow PROCMAIL to "fail softly").  For the proper
#       format, check out "~bodysurf/.forward".

} $ cat ~bodysurf/.forward
}
} "|IFS=' ';p=/usr/local/nuglops/bin/procmail;if test -x $p; then exec $p -Yf-; 
else exec `/usr/bin/ksh -c 'echo ~vjl'`/bin/procmail -Yf-; fi"

[ Above "~/.forward" file courtesy of Philip Guenther: ]

However, this *exact* format will only work on NetCom.  A more generic
example would be:

"|IFS=' '; exec /usr/local/bin/procmail -Yf-"

It's important to make sure that you replace "/usr/local/bin/procmail"
with *your* procmail is located.

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 <---------------------