2019-06-01 19:53:24 +08:00
|
|
|
# global_sieve_before script
|
|
|
|
# global_sieve_before -> user sieve_before (mailcow UI) -> user sieve_after (mailcow UI) -> global_sieve_after
|
2021-01-14 16:38:56 +08:00
|
|
|
|
|
|
|
require "fileinto";
|
|
|
|
require "mailbox";
|
|
|
|
|
|
|
|
if header :contains ["Chat-Version"] [""] {
|
|
|
|
if mailboxexists "DeltaChat" {
|
|
|
|
fileinto "DeltaChat";
|
|
|
|
} else {
|
|
|
|
fileinto :create "DeltaChat";
|
|
|
|
}
|
|
|
|
stop;
|
|
|
|
}
|