bundles/dovecot: introduce
This commit is contained in:
parent
f42dda5961
commit
18b573a9c6
7 changed files with 286 additions and 0 deletions
15
bundles/dovecot/files/learn-ham.sieve
Normal file
15
bundles/dovecot/files/learn-ham.sieve
Normal 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