repositories
/
dotfiles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8da7d88
)
newmail patch
author
Mart Lubbers
<mart@martlubbers.net>
Thu, 28 Mar 2019 09:10:05 +0000
(10:10 +0100)
committer
Mart Lubbers
<mart@martlubbers.net>
Thu, 28 Mar 2019 09:10:05 +0000
(10:10 +0100)
email/.local/bin/newmail.sh
patch
|
blob
|
history
diff --git
a/email/.local/bin/newmail.sh
b/email/.local/bin/newmail.sh
index
4290971
..
a1828a0
100755
(executable)
--- a/
email/.local/bin/newmail.sh
+++ b/
email/.local/bin/newmail.sh
@@
-3,7
+3,7
@@
newmail="$(find ~/.local/share/offlineimap/mail/INBOX/new/ -type f | wc -l)"
if [ "$newmail" -eq 1 ]
then
notify-send "1 new email!"
-el
se
if [ "$newmail" -ne 0 ]
+elif [ "$newmail" -ne 0 ]
then
notify-send "$newmail new emails!"
fi