mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-07-26 19:49:38 +00:00
Sieve rule for tags changed
This commit is contained in:
parent
2dd9e1b14f
commit
aa98d86feb
1 changed files with 6 additions and 9 deletions
|
|
@ -9,16 +9,13 @@ if header :contains "X-Spam-Flag" "YES" {
|
|||
}
|
||||
|
||||
if allof (
|
||||
envelope :detail :matches "to" "*",
|
||||
header :contains "X-Moo-Tag" "YES",
|
||||
mailboxexists "INBOX/${s}"
|
||||
) {
|
||||
fileinto "INBOX/${s}";
|
||||
}
|
||||
elsif allof (
|
||||
envelope :detail :matches "to" "*",
|
||||
header :contains "X-Moo-Tag" "YES"
|
||||
) {
|
||||
set :lower "s" "${1}";
|
||||
fileinto :create "INBOX/${s}";
|
||||
set :lower :upperfirst "tag" "${1}";
|
||||
if mailboxexists "INBOX/${1}" {
|
||||
fileinto "INBOX/${1}";
|
||||
} else {
|
||||
fileinto :create "INBOX/${tag}";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue