repositories
/
dotfiles.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
4290971a65797de68c4fdd7fd9ddfd5966c64c50
[dotfiles.git]
/
email
/
.local
/
bin
/
newmail.sh
1
#!/bin/sh
2
newmail
=
"$(find ~/.local/share/offlineimap/mail/INBOX/new/ -type f | wc -l)"
3
if
[
"
$newmail
"
-eq
1
]
4
then
5
notify-send
"1 new email!"
6
else if
[
"
$newmail
"
-ne
0
]
7
then
8
notify-send
"
$newmail
new emails!"
9
fi
10
notmuch new
11
vdirsyncer sync