mutt-wizard

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

commit cff2554231b5dce228795acaf02b5a69cb7d362e
parent 9f489eefc277651e4dc70ec7d7c06b4396835175
Author: Dov Salomon <dsalomon@nyu.edu>
Date:   Tue, 30 Apr 2019 20:38:53 -0400

Mailsync: only pass -a to mbsync when no args

If -a is passed along with "$@", mailsync will sync all mailboxes even
if only a single channel is passed in with "$@". This breaks the
semantics of the `o` macro in mutt which should only sync the current
mailbox that is currently being viewed in mutt.

Diffstat:
Mbin/mailsync | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/bin/mailsync b/bin/mailsync @@ -18,7 +18,12 @@ echo " 🔃" > /tmp/imapsyncicon_$USER pkill -RTMIN+12 i3blocks # Run mbsync. You can feed this script different settings. -mbsync -a "$@" +if [ $# -eq 0 ]; then + mbsync -a +else + mbsync "$@" +fi + rm -f /tmp/imapsyncicon_$USER pkill -RTMIN+12 i3blocks