so far I was always letting it run once a week over my inbox in --ham mode and over my spam folder in --spam mode. all tutorials I saw did it the same way. this also worked for years but likely with less mail files. I was under the impression that sa-learn would skip messages that it already learned. the debug log also indicated that it recognized those.

On 11.02.2018 19:44, Matus UHLAR - fantomas wrote:
On 11.02.18 19:09, Hendrik Haddorp wrote:
I have a maildir with about 20000 mails. In the past this does not seem to have been a problem. But since a few weeks my sa-learn process dies with an OOM now.

do you run sa-learn over whole maildir all the time?
why?

My server has only 1GB of memory with another GB for swap. sa-learn is eating up pretty much the complete memory for the run and is only able to finish when I stop everything else. Why is sa-learn using more and more memory even when it learned all those messages already in the past? Is there a way to limit the memory usage except from making the set of messages smaller?

you are not supposed to repeatedly call sa-learn over huge maildir.

calling over new mail (or, better, false-positives and false-negatives) is
faster and won't eat all your memory.


Reply via email to