summaryrefslogtreecommitdiff
path: root/eml
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2019-04-11 09:42:53 -0700
committerBen Sima <ben@bsima.me>2019-04-11 09:42:53 -0700
commitd9fc76578df9fd2bc1978326eb56646f5776f819 (patch)
tree3b6e942aad76ecae5ba4463aa81899de0b67951f /eml
parent3656524c18af9f667611286b0b812823d8766901 (diff)
eml: always show notification
Diffstat (limited to 'eml')
-rwxr-xr-xeml10
1 files changed, 6 insertions, 4 deletions
diff --git a/eml b/eml
index 9f598a7..0eb3add 100755
--- a/eml
+++ b/eml
@@ -2,9 +2,11 @@
count=$(notmuch count tag:inbox and tag:unread)
-case "$1" in
- -n) [[ $count > 0 ]] && notify-send "New mail" "$count messages" ;;
- *) echo $count ;;
-esac
+if [[ $count > 0 ]]; then
+ notify-send "New mail" "$count messages"
+else
+ notify-send "No new mail"
+fi
+echo $count
exit 0;