You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
314 B
Sieve
12 lines
314 B
Sieve
require ["vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables"];
|
|
|
|
if environment :matches "imap.mailbox" "*" {
|
|
set "mailbox" "${1}";
|
|
}
|
|
|
|
if string "${mailbox}" [ "Trash", "train_ham", "train_prob", "train_spam" ] {
|
|
stop;
|
|
}
|
|
|
|
pipe :copy "rspamd-learn-ham.sh";
|
|
pipe :copy "rspamd-learn-fuzzy-ham.sh"; |