diff --git a/bin/mailsync b/bin/mailsync index da1d2b7..6ab8efb 100755 --- a/bin/mailsync +++ b/bin/mailsync @@ -25,7 +25,7 @@ pkill -RTMIN+12 i3blocks for account in "$HOME/.local/share/mail/"* do acc="$(echo "$account" | sed "s/.*\///")" - newcount=$(find "$HOME/.local/share/mail/$acc/INBOX/new/" -type f -newer "$HOME/.config/mutt/bin/.mailsynclastrun" 2> /dev/null | wc -l) + newcount=$(find "$HOME/.local/share/mail/$acc/INBOX/new/" "$HOME/.local/share/mail/$acc/Inbox/new/" "$HOME/.local/share/mail/$acc/inbox/new/" -type f -newer "$HOME/.config/mutt/bin/.mailsynclastrun" 2> /dev/null | wc -l) [ "$newcount" -gt "0" ] && notify "$acc" "$newcount" & done notmuch new 2>/dev/null