summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2022-07-01 10:21:12 -0400
committerGitHub <noreply@github.com>2022-07-01 10:21:12 -0400
commit26a6a1190a7f9062c89a1babc5ad996e17ee2080 (patch)
treedee816f76eb4111884bb5aaccd1622fa772faae6 /bin
parent47d4ec1825d3e24ae2cf682788e796e8674d0661 (diff)
parent3a2f4a55fa966a6c095639193cb9ab1f3a3d8229 (diff)
Merge pull request #852 from f380cedric/fix/case-insensitive-fs
Fix: find & case-insensitive filesystem
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mailsync8
1 files changed, 2 insertions, 6 deletions
diff --git a/bin/mailsync b/bin/mailsync
index f100cd0..17cb9f3 100755
--- a/bin/mailsync
+++ b/bin/mailsync
@@ -56,12 +56,8 @@ syncandnotify() {
acc="$(echo "$account" | sed "s/.*\///")"
if [ -z "$opts" ]; then mbsync "$acc"; else mbsync "$opts" "$acc"; fi
new=$(find\
- "$HOME/.local/share/mail/$acc/INBOX/new/"\
- "$HOME/.local/share/mail/$acc/Inbox/new/"\
- "$HOME/.local/share/mail/$acc/inbox/new/"\
- "$HOME/.local/share/mail/$acc/INBOX/cur/"\
- "$HOME/.local/share/mail/$acc/Inbox/cur/"\
- "$HOME/.local/share/mail/$acc/inbox/cur/"\
+ "$HOME/.local/share/mail/$acc/"[Ii][Nn][Bb][Oo][Xx]/new/\
+ "$HOME/.local/share/mail/$acc/"[Ii][Nn][Bb][Oo][Xx]/cur/\
-type f -newer "$lastrun" 2> /dev/null)
newcount=$(echo "$new" | sed '/^\s*$/d' | wc -l)
case 1 in