ctucx.git: nixfiles

ctucx' nixfiles

commit e5311977ca401b0f9330d3633402761b8e9702b5
parent d303ce782f3c864a0789f50f0d513d7b92528cc6
Author: Leah (ctucx) <git@ctu.cx>
Date: Tue, 20 Feb 2024 10:28:10 +0100

machines/trabbi/mail: update sieve filters
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/machines/trabbi/mail/rules-leah.sieve b/machines/trabbi/mail/rules-leah.sieve
@@ -18,8 +18,19 @@ if address :is "to" "le0nth3in@gmail.com" {
   addheader :last "Subject" "[OLD GMAIL] ${subject}";
 }
 
+if address :contains "to" "@thein.ovh" {
+  if header :matches "Subject" "*" {
+     set "subject" "${1}";
+  }
+
+  deleteheader "Subject";
+  addheader :last "Subject" "[OLD DOMAIN] ${subject}";
+}
+
+
 if header :contains "From" [
   "newsletter@email.mtstofferie.de",
+  "newsletter@leguano.eu",
   "ikea@hej.news.email.ikea.de",
   "newsletter@crazyhorsecraft.com",
   "inside@cowboy.com",