Changing bogofilter output sense

Matthias Andree matthias.andree at gmx.de
Tue Jul 15 23:21:30 CEST 2003


Gyepi SAM <gyepi at praxis-sw.com> writes:

> On Tue, Jul 15, 2003 at 05:50:44PM +0200, Piotr KUCHARSKI wrote:
>> On Thu, Jul 10, 2003 at 07:41:09PM -0400, Gyepi SAM wrote:
>> > Use a wrapper around bogofilter
>> 
>> #!/bin/ksh
>> bogofilter $* && exit 1 || exit 0
>
> No. If bogofilter exits 2, this will pretend that everything is OK,
> which is false. 

Other than that, $* should be avoided. The canonical expression is "$@",
including the quote marks.

-- 
Matthias Andree




More information about the Bogofilter mailing list