X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=email%2F.local%2Fbin%2Fnewmail.sh;h=16c28883992d7ed5806c03826677d7590569fbb8;hb=HEAD;hp=8d8c35c25ac6c0f8131000acf3312bbe1c11879b;hpb=64d152f05fd4754fe1f48e37f1b9875b7b5f43b1;p=dotfiles.git diff --git a/email/.local/bin/newmail.sh b/email/.local/bin/newmail.sh index 8d8c35c..16c2888 100755 --- a/email/.local/bin/newmail.sh +++ b/email/.local/bin/newmail.sh @@ -1,8 +1,7 @@ #!/bin/sh -newmail="$(find ~/.local/share/mutt/mail/INBOX/new/ -type f | wc -l)" -if [ "$newmail" -ne 0 ] +notmuch new +killall -s SIGUSR1 slstatus +if [ "$OFFLINEIMAPSYNCMODE" = full ] then - notify-send "$newmail new emails!" + vdirsyncer sync --max-workers=1 fi -notmuch new -vdirsyncer sync