From 82a3b47ca4f8b63758a34704a3a0f8581c90942c Mon Sep 17 00:00:00 2001 From: Arti Zirk Date: Thu, 28 Mar 2019 18:15:35 +0200 Subject: [PATCH] Add notmuch_unread_tags script --- .bin/notmuch_tag_status | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 .bin/notmuch_tag_status diff --git a/.bin/notmuch_tag_status b/.bin/notmuch_tag_status new file mode 100755 index 0000000..4c913c9 --- /dev/null +++ b/.bin/notmuch_tag_status @@ -0,0 +1,6 @@ +#!/bin/bash +# Show a table of tag and now many unread emails under that tag + +for tag in $(notmuch search --output=tags '*'); do + echo -ne "${tag} | $(notmuch count tag:${tag} and tag:unread) \n"; +done | column -s '|' -t