[Dovecot] Revert autocrypt sieve before, fixes DeltaChat and closes #4230
parent
c925951bca
commit
d383c0ab9b
|
@ -1,10 +1,9 @@
|
||||||
# global_sieve_before script
|
# global_sieve_before script
|
||||||
# global_sieve_before -> user sieve_before (mailcow UI) -> user sieve_after (mailcow UI) -> global_sieve_after
|
# global_sieve_before -> user sieve_before (mailcow UI) -> user sieve_after (mailcow UI) -> global_sieve_after
|
||||||
|
|
||||||
require ["imap4flags", "mailbox", "fileinto"];
|
require ["mailbox", "fileinto"];
|
||||||
|
|
||||||
if allof(header :contains ["Chat-Version"] [""],
|
if header :contains ["Chat-Version"] [""] {
|
||||||
header :contains ["Auto-Submitted"] ["auto-replied"]) {
|
|
||||||
if mailboxexists "DeltaChat" {
|
if mailboxexists "DeltaChat" {
|
||||||
fileinto "DeltaChat";
|
fileinto "DeltaChat";
|
||||||
} else {
|
} else {
|
||||||
|
@ -12,9 +11,3 @@ if allof(header :contains ["Chat-Version"] [""],
|
||||||
}
|
}
|
||||||
stop;
|
stop;
|
||||||
}
|
}
|
||||||
|
|
||||||
if allof(header :contains ["Chat-Version"] [""],
|
|
||||||
header :contains ["Autocrypt"] [""]) {
|
|
||||||
setflag "\\seen";
|
|
||||||
stop;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue