summaryrefslogtreecommitdiff
path: root/bin/mailsync
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-04-19 18:20:10 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-04-19 18:20:10 -0400
commit927a95bd2c9e9b3e50714dc72f9a849c8019282b (patch)
treebcd985751e4236ce00d9fd5a3005822fc53f641e /bin/mailsync
parent36eaa070752647f54d6db49e43bcec979cdb6521 (diff)
mailsync checks inbox case insens
Diffstat (limited to 'bin/mailsync')
-rwxr-xr-xbin/mailsync2
1 files changed, 1 insertions, 1 deletions
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