home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit cb2bf550eea6896d2a0dfa9e2b2558dfeda5b8d6
parent df3e9a5cd81df66853dd8945c5fc94f516fee399
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Tue,  7 Dec 2021 11:28:19 +0100

users/vincent: fix gmailctl configuration…

… and add a few new mailing lists.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Musers/vincent/mails/config.jsonnet | 17++++++++++-------
Musers/vincent/mails/default.nix | 2+-
2 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/users/vincent/mails/config.jsonnet b/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') + diff --git a/users/vincent/mails/default.nix b/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 ]; }