Commit cb2bf550eea6

Vincent Demeester <vincent@sbr.pm>
2021-12-07 11:28:19
users/vincent: fix gmailctl configuration…
… and add a few new mailing lists. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent df3e9a5
Changed files (2)
users/vincent/mails/config.jsonnet
@@ -1,4 +1,4 @@
-local lib = import 'gmailctl.libsonnet';
+local lib = import './gmailctl.libsonnet';
 
 local toMe = {
   or: [
@@ -20,7 +20,7 @@ local label_archive(filter, label) =
    ]
 ;
 
-local rh_mailing_list(name, label = '') =
+local rh_mailing_list(name, label = '', archive = true) =
     local labels =
         if label == '' then
            [ std.join('/', std.splitLimit(name, '-', 1) ) ]
@@ -49,7 +49,7 @@ local rh_mailing_list(name, label = '') =
             ],
           },
           actions: {
-            archive: true,
+            archive: archive,
             markSpam: false,
             labels: labels
           }
@@ -57,7 +57,7 @@ local rh_mailing_list(name, label = '') =
     ]
 ;
 
-local google_groups(name, label = '') =
+local google_groups(name, label = '', archive = true) =
     local labels =
         if label == '' then
            [ std.join('/', std.splitLimit(name, '-', 1) ) ]
@@ -86,7 +86,7 @@ local google_groups(name, label = '') =
             ],
           },
           actions: {
-            archive: true,
+            archive: archive,
             markSpam: false,
             labels: labels
           }
@@ -148,8 +148,11 @@ local google_groups(name, label = '') =
     google_groups('istio-dev', 'istio/dev') +
     google_groups('istio-users', 'istio/users') +
     rh_mailing_list('pipelines-interests', 'pipelines/interests') +
-    rh_mailing_list('pipelines-dev', 'pipelines/dev') +
-    google_groups('tekton-dev', 'tekton/dev') +
+    rh_mailing_list('pipelines-dev', 'pipelines/dev', false) +
+    rh_mailing_list('pipelines-extcomm', 'pipelines/dev', false) +
+    rh_mailing_list('pipelines-extcomm', 'pipelines/ext') +
+    rh_mailing_list('pipelines-bots', 'pipelines/bots', false) +
+    google_groups('tekton-dev', 'tekton/dev', false) +
     google_groups('tekton-users', 'tekton/users') +
     google_groups('tekton-governance', 'tekton/governance') +
     google_groups('tekton-vmt', 'tekton/vmt') +
users/vincent/mails/default.nix
@@ -9,6 +9,6 @@ in
     sync = sync;
   };
   home.file.".gmailctl/config.jsonnet".source = ./config.jsonnet;
-  home.file.".gmailctl/gmailctl.jsonnet".source = ./gmailctl.libsonnet;
+  home.file.".gmailctl/gmailctl.libsonnet".source = ./gmailctl.libsonnet;
   home.packages = with pkgs; [ gmailctl ];
 }