Page 1 of 1

SA-Learn error

Posted: 20 Apr 2021 09:26
by Woger
Hi there,
If I use the spam option in Mailwatch I get this error:
SA Learn Number found where operator expected at (eval 2228) line 1, near ") 2", (Missing operator before 2?)

I upgrade EFA from the console, but the message is still not gone.

This is probably a wrong setting somewhere, but I can't find it.

Does anyone know where to look for the problem?

Thanks,
Roger

Re: SA-Learn error

Posted: 18 Mar 2022 05:25
by pdwalker
Did you ever resolve this problem?

I'd debug it by running sa-learn from the command line, for example:

$ sa-learn -D --spam /var/spool/MailScanner/quarantine/20220318/spam/4KKXJF2T1ZzNCQtQ | less

You'd have to find the path to your message by searching for the messageid of the message in question. This works:

$ find /var/spool/MailScanner/quarantine -name 4KKXJF2T1ZzNCQtQ

Re: SA-Learn error

Posted: 07 Apr 2022 07:02
by Woger
OK, I tried this and it gives no error and says it checked 1 mail and put 1 tot the database. Also if I do it again, it just examines 1 mail, but doesn't save it anymore. So it seems to be working fine from the prompt. Doing it from mailwatch however gives the same problem. But I think it still works, because doing it again from prompt it examins 1 mail but doesn't add it to the database.

Thanks,
Roger

Re: SA-Learn error

Posted: 07 Apr 2022 09:08
by pdwalker
Do you get the same error everytime you mark a message as spam in the mailwatch interface?