mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 19:15:37 +00:00
only show new mail if in inbox
This commit is contained in:
parent
cf73ce8136
commit
ca7a4ed408
@ -107,7 +107,7 @@
|
||||
format = "<label>";
|
||||
exec = builtins.toString (pkgs.writeShellScript "mailcount.sh" ''
|
||||
${pkgs.notmuch}/bin/notmuch new > /dev/null
|
||||
UNREAD=$(${pkgs.notmuch}/bin/notmuch count is:inbox and is:unread)
|
||||
UNREAD=$(${pkgs.notmuch}/bin/notmuch count is:inbox and is:unread and folder:main/Inbox)
|
||||
if [ $UNREAD = "0" ]; then
|
||||
echo ""
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user