nix: update nixpkgs
[sourcephile-nix.git] / hosts / mermet / dovecot / sieve / global / list.sieve
index e52e9f56cfa26da671fb6fb8c69f17ff01bb1ce4..2464a9134cf689944ae9a333057ebc46177acf90 100644 (file)
@@ -14,7 +14,19 @@ if exists "X-MC-User" {
   }
 }
 elsif exists "List-Id" {
-  if header :matches "List-Id" "*<*.*.*.*>*" {
+  if header :matches "List-Id" "*<*/*.*.lists.sr.ht>*" {
+    if allof (not string :is "${2}" "", not string :is "${3}" "", not string :is "${4}" "")  {
+      fileinto :create "Listes+sr.ht+${2}+${3}+${4}";
+      stop;
+    }
+  }
+  elsif header :matches "List-Id" "*<*/*.lists.sr.ht>*" {
+    if allof (not string :is "${2}" "", not string :is "${3}" "")  {
+      fileinto :create "Listes+sr.ht+${2}+${3}";
+      stop;
+    }
+  }
+  elsif header :matches "List-Id" "*<*.*.*.*>*" {
     if allof (not string :is "${2}" "", not string :is "${3}" "", not string :is "${4}" "")  {
       fileinto :create "Listes+${4}+${3}+${2}";
       stop;