#!/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 ]
+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