Sieve script update

This commit is contained in:
Julien Malka 2023-01-26 23:56:53 +01:00
parent 70bea781d4
commit f0e020a353
Signed by: Luj
GPG key ID: 6FC74C847011FD83

View file

@ -38,10 +38,12 @@ if allof (header :contains "from" "netdata")
#rule:[Lol] #rule:[Lol]
if header :matches "X-Original-To" "*@malka.sh" { if header :matches "X-Original-To" "*@malka.sh" {
set :lower "name" "${1}"; set :lower "name" "${1}";
} if string :is "${name}" "" {
fileinto "INBOX";
if string :is "${name}" "" { }
fileinto "INBOX"; elsif string :is "${name}" "julien" {
} else { fileinto "INBOX";
fileinto :create "INBOX.${name}"; } else {
} fileinto :create "INBOX.${name}";
}
}