SA-Learn error

Bugs in eFa 4
Post Reply
Woger
Posts: 67
Joined: 15 Mar 2017 10:54

SA-Learn error

Post 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
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: SA-Learn error

Post 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
Woger
Posts: 67
Joined: 15 Mar 2017 10:54

Re: SA-Learn error

Post 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
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: SA-Learn error

Post by pdwalker »

Do you get the same error everytime you mark a message as spam in the mailwatch interface?
Post Reply