Hi alltogether,
I am new to this community. Because I want to use kopano for a customer of mine, some fixes are needed to be made.
This problem was one of them :)
I created a patch which fixes this issue with kopano-spamd not beeing able to learn spam-flagged emails as ham (and then as spam again).
I already sent the patch to contributing@kopano.io in hope they will merge it.
But anyhow - here is the patch in case anyone wants to test it now for themselfes:
https://github.com/ejjoman/kopano-core/commit/073d9a230f7a79612850c26da9e95db2bbd2a680
With this patch, kopano-spamd is able to keep track of incoming emails which are flagged as spam.
It will then mark the message in the internal db as “was spam” and at this point the message behaves as you would expect it from the user pov.
You then can move the message to the inbox, which will trigger the ham-learning. You can also move the message to the spam folder again to trigger spam-learning in case the user moved a wrong message to the inbox.
I hope you like it.
–
Michael