Rspamd: adjust learning of ham (#3334)

* adjust learning of ham

See #3333

When moving a mail from the Junk folder to the Trash folder, the mail
previously classified as ham due to the wildcard match of `*`. Because
the syntax does not allow for negation, we can only change the behavior
in a way that mails are learned as ham when they are moved into `INBOX`
from `Junk`. This is reasonable though.

* adjust tests accordingly

* adjust docs accordingly
This commit is contained in:
Georg Lauterbach 2023-05-13 13:59:16 +02:00 committed by GitHub
parent 78b7f0cbea
commit 9fd00bd6ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 34 additions and 30 deletions

View file

@ -1,4 +1,4 @@
A LOGIN user1@localhost.localdomain 123
B SELECT Junk
A UID MOVE 1:1 INBOX
A4 LOGOUT
A MOVE 1:1 INBOX
A LOGOUT

View file

@ -1,4 +1,4 @@
A LOGIN user1@localhost.localdomain 123
B SELECT INBOX
A UID MOVE 1:1 Junk
A4 LOGOUT
A MOVE 1:1 Junk
A LOGOUT