"George A. Theall via users" <users@spamassassin.apache.org> writes:

> On Tue, Nov 07, 2023 at 02:28:38AM +0100, Cecil Westerhof wrote:
>>https://spamassassin.apache.org/full/3.1.x/doc/spamc.html says:
>>    -L learn type
>>        Send message to spamd for learning. The learn type can be
>>        either spam, ham or forget. The exitcode for spamc will be set
>>        to 5 if the message was learned, or 6 if it was already
>>        learned.
>>
>>        Note that the spamd must run with the --allow-tell option for
>>        this to work.
>                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> How are you running spamd?  With -l / --allow-tell?

    --pidfile=/run/spamd.pid --username=imaps --allow-tell --create-prefs 
--max-children 5 --helper-home-dir

And the learning does work. But I have to use the generated text
instead of the exit codes.

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

Reply via email to