blob: 142f422a0f3b3f898b127a8b6738e1c2e19a998e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/usr/bin/env bash
filter=("tag:unread" "and" "not" "tag:killed")
part=()
all=0
for mail in email gmail elektroline fel; do
counts="$(notmuch count -- "${filter[@]}" and "tag:$mail")"
[ "$counts" = "0" ] || \
part+=("$mail:$counts")
((all = all + counts))
done
echo "${part[@]}"
if [ "$all" = "0" ]; then
echo
else
echo "mails:$all"
fi
echo "#ffff00"
|