diff options
author | Luke Smith <Luke Smith> | 2022-07-01 17:36:00 -0400 |
---|---|---|
committer | Luke Smith <Luke Smith> | 2022-07-01 17:36:00 -0400 |
commit | 0a58bf00b4acb70a23fb0503e2e259cbde4f955c (patch) | |
tree | d174f8a3520a879bc9608af529173c5e9f7045b2 /bin | |
parent | 30c1c0d2ae1ea4439986b1868557bbd2cc9e297a (diff) | |
parent | 26a6a1190a7f9062c89a1babc5ad996e17ee2080 (diff) |
Merge branch 'master' of github.com:LukeSmithxyz/mutt-wizard
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/mailsync | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/bin/mailsync b/bin/mailsync index c924de5..854e1d1 100755 --- a/bin/mailsync +++ b/bin/mailsync @@ -54,12 +54,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 |