Sieve rule to move DeltaChat mails to DeltaChat folder

Here is my working sieve filter which is checking on the “Chat-Version” header:

require ["fileinto"];

if header :contains ["Chat-Version"] [""] {
  fileinto "DeltaChat";
  stop;
}

the “” checks for “exists” of the header as documented here: rfc5228

3 Likes