mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-10-23 09:43:22 +00:00
Lowercase tag name "eXaMpLe" to "example" if folder "eXaMpLe" does not exist, else move to folder "eXaMpLe"
This commit is contained in:
1 parent
be7693a8e1
commit
621235d8da
1 file changed
+14
-2
@@ -7,6 +7,18 @@ require "envelope";
|
||||
if header :contains "X-Spam-Flag" "YES" {
|
||||
fileinto "Junk";
|
||||
}
|
||||
if allof (envelope :detail :matches "to" "*", header :contains "X-Moo-Tag" "YES") {
|
||||
fileinto :create "INBOX/${1}";
|
||||
|
||||
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}";
|
||||
}
|
||||
Reference in new issue
Block a user