X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=email%2F.local%2Fbin%2Fnewmail.sh;h=94d5945842601d1c4445f8611c9de64bc58ca1fe;hb=4b27ac9df10f43f9da8470eda7eb3552a83bc7be;hp=a1828a00ef7a6797bd54813e80de3d1a9306c1fa;hpb=4dd9dbe54e6ac860b7fed79551141ec8cf54aa7d;p=dotfiles.git diff --git a/email/.local/bin/newmail.sh b/email/.local/bin/newmail.sh index a1828a0..94d5945 100755 --- a/email/.local/bin/newmail.sh +++ b/email/.local/bin/newmail.sh @@ -1,11 +1,4 @@ #!/bin/sh -newmail="$(find ~/.local/share/offlineimap/mail/INBOX/new/ -type f | wc -l)" -if [ "$newmail" -eq 1 ] -then - notify-send "1 new email!" -elif [ "$newmail" -ne 0 ] -then - notify-send "$newmail new emails!" -fi notmuch new vdirsyncer sync +killall -s SIGUSR1 slstatus