mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-26 13:05: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>";
|
format = "<label>";
|
||||||
exec = builtins.toString (pkgs.writeShellScript "mailcount.sh" ''
|
exec = builtins.toString (pkgs.writeShellScript "mailcount.sh" ''
|
||||||
${pkgs.notmuch}/bin/notmuch new > /dev/null
|
${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
|
if [ $UNREAD = "0" ]; then
|
||||||
echo ""
|
echo ""
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user