mail: put spam sieve scripts into /etc
This commit is contained in:
parent
a0f78133f6
commit
11b0903535
3 changed files with 36 additions and 2 deletions
15
modules/mail/report-ham.sieve
Executable file
15
modules/mail/report-ham.sieve
Executable file
|
@ -0,0 +1,15 @@
|
|||
require ["vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables"];
|
||||
|
||||
if environment :matches "imap.mailbox" "*" {
|
||||
set "mailbox" "${1}";
|
||||
}
|
||||
|
||||
if string "${mailbox}" "Trash" {
|
||||
stop;
|
||||
}
|
||||
|
||||
if environment :matches "imap.user" "*" {
|
||||
set "username" "${1}";
|
||||
}
|
||||
|
||||
pipe :copy "sa-learn-ham.sh" [ "${username}" ];
|
Loading…
Add table
Add a link
Reference in a new issue