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