RW <rwmailli...@googlemail.com> writes:

>> But when I run spamc -L I get a return code 0 back. I am working with:
>>     SpamAssassin Client version 3.2.5
>
>
> Have you checked spamc.conf to make sure there isn't a long forgotten
> -E or --exitcode lurking there?

SYSCONFDIR is not defined and in /etc/mail/spamassassin there is no
spamc.conf. So I think that is not the case.

Later on in the manpage it says:
    EXIT CODES
           By default, spamc will use the 'safe fallback' error recovery 
method.  That means, it will always exit with an exit code if 0,
           even if an error was encountered.  If any error occurrs, it will 
simply pass through the unaltered message.

           The -c and -E options modify this; instead, spamc will use an exit 
code of 1 if the message is determined to be spam.

It looks like this is correct and the earlier statement not.

In a way this is good: I do not need to work with 'set +e' and 'set -e'
and I can catch the output to decide what has happened.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

Reply via email to