From e135d0bd55839b701c04cdebf5b13a2caaadc7b1 Mon Sep 17 00:00:00 2001 From: mxmehl Date: Thu, 14 Jan 2021 10:11:08 +0100 Subject: [PATCH] tag all tagged events (event.foobar) with the general 'event' tag --- astroid/config | 2 +- astroid/poll.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/astroid/config b/astroid/config index 802861a..ac2a43e 100644 --- a/astroid/config +++ b/astroid/config @@ -38,7 +38,7 @@ "tags_upper_color": "#e5e5e5", "tags_lower_color": "#333333", "tags_alpha": "0.5", - "hidden_tags": "unread,sent,signed,replied,encrypted,del,attachment,flagged,inbox" + "hidden_tags": "unread,sent,signed,replied,encrypted,del,attachment,flagged,inbox,event" }, "thread_load_step": "250" }, diff --git a/astroid/poll.sh b/astroid/poll.sh index ef8d198..e1adf75 100755 --- a/astroid/poll.sh +++ b/astroid/poll.sh @@ -43,6 +43,9 @@ notmuch tag +archive -- path:ARCHIVE/** echo "[DEBUG] Tag mails in in INBOX folder" notmuch tag +inbox -- path:INBOX/** +# Tag all tagged events with the general "event" tag +notmuch tag +event -- tag:"/event.*/" + # Automatic tagging based on location of mails in folders echo "[DEBUG] Tag mails based on their folder (tag-folder.sh)" bash $CURDIR/scripts/tag-folder.sh # generates commands from tag-folder.csv