Log entry "not enough messages to train a classifier"

since last update of the mail app I have following warning in my nextcloud log:
“not enough messages to train a classifier”
It is shown ~ every hour.

Is something wrong with the installation? Should this be really a warning?


Nextcloud version: 18.0.6
Mail-App version: 1.4.0

Good point. I guess it should be a info or debug statement. The code in question is at https://github.com/nextcloud/mail/blob/7d695701631060bf1d929d9e15de99e4b6e2fb68/lib/Service/Classification/ImportanceClassifier.php#L175. Mind submitting your first pull request to our repo? :slight_smile:


Yes, I can submit a pull request. Is there a small HowTo? Do I need to have access rights?
I think this line should also be changed:


See https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests

Good catch! Indeed both lines should be changed.

I have the some error every hour. Thanks for proceeding the request!

Is there a link to the github issue ?
Or any details explanation why this happens, I am quite certain that my mail app should have enough data for the classifiers :wink:


Here you can find the pull request:

1 Like