mailsystem: dovecot: Autolearn ham/spam when moving mails
This commit is contained in:
parent
9149f03384
commit
aacf9a9b8c
3 changed files with 76 additions and 2 deletions
7
mailsystem/dovecot/report-spam.sieve
Normal file
7
mailsystem/dovecot/report-spam.sieve
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
require ["vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables"];
|
||||
|
||||
if environment :matches "imap.user" "*" {
|
||||
set "username" "${1}";
|
||||
}
|
||||
|
||||
pipe :copy "learn-spam.sh" [ "${username}" ];
|
||||
Loading…
Add table
Add a link
Reference in a new issue