dotfiles/.bin/notmuch_tag_status

7 lines
220 B
Bash
Executable File

#!/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