Add date header if it is missing
This commit is contained in:
parent
df8775d4c9
commit
362f5d65ff
|
@ -1,7 +1,13 @@
|
|||
# global_sieve_before script
|
||||
# global_sieve_before -> user sieve_before (mailcow UI) -> user sieve_after (mailcow UI) -> global_sieve_after
|
||||
|
||||
require ["mailbox", "fileinto"];
|
||||
require ["mailbox", "fileinto", "date", "editheader", "variables"];
|
||||
|
||||
if not exists "Date" {
|
||||
if date :matches "received" "std11" "*" {
|
||||
addheader :last "Date" "${1}";
|
||||
}
|
||||
}
|
||||
|
||||
if header :contains ["Chat-Version"] [""] {
|
||||
if mailboxexists "DeltaChat" {
|
||||
|
|
Loading…
Reference in New Issue