]> source.dussan.org Git - rspamd.git/commit
[Fix] Always set the unlearn flag when relearning
authoraduernberger <aduernberger@googlemail.com>
Thu, 18 Apr 2024 12:28:34 +0000 (14:28 +0200)
committerGitHub <noreply@github.com>
Thu, 18 Apr 2024 12:28:34 +0000 (14:28 +0200)
commit20f6d7103e0526de6c8e74d2565e8c399fceacc7
tree07b6f3f442ae860f46af0518c848a1775f741996
parent1e29462466e48134b325b61c42575254dc0a9fc8
[Fix] Always set the unlearn flag when relearning

Treat relearning from ham to spam the same as relearning from spam to ham. `res` is only set to true if the mail is already learned.
src/libstat/learn_cache/redis_cache.cxx