mutt-wizard

fork of Luke Smiths mutt-wizard
git clone git://git.jakekoroman.com/mutt-wizard
Log | Files | Refs | README | LICENSE

commit 0a58bf00b4acb70a23fb0503e2e259cbde4f955c
parent 30c1c0d2ae1ea4439986b1868557bbd2cc9e297a
Author: Luke Smith <Luke Smith>
Date:   Fri,  1 Jul 2022 17:36:00 -0400

Merge branch 'master' of github.com:LukeSmithxyz/mutt-wizard

Diffstat:
Mbin/mailsync | 8++------
1 file changed, 2 insertions(+), 6 deletions(-)

diff --git 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