mailsystem: dovecot: Autolearn ham/spam when moving mails
This commit is contained in:
parent
d35763a8a2
commit
0ce3ecae52
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