summaryrefslogtreecommitdiff
path: root/bin/mw
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mw')
-rwxr-xr-xbin/mw4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/mw b/bin/mw
index f8d9d7b..9f39cc4 100755
--- a/bin/mw
+++ b/bin/mw
@@ -293,7 +293,7 @@ purge() { confirm "delete all account data" || exit
sed -ibu "/\# mw-autogenerated/d" "$muttrc" ; rm -f "$muttrc"bu
}
-syncwrapper() { mbsync -a &
+syncwrapper() { mbsync "${1:--a}" &
( kill -46 "$(pidof "${STATUSBAR:-dwmblocks}")" >/dev/null 2>&1 ) 2>/dev/null
wait
( kill -46 "$(pidof "${STATUSBAR:-dwmblocks}")" >/dev/null 2>&1 ) 2>/dev/null
@@ -326,7 +326,7 @@ case "$1" in
add) asktype && askinfo && tryconnect && finalize || delete ;;
pass) pick "change the password of" && getpass ;;
delete) pick delete && confirm "delete the \`$title\` profile" && delete ;;
- sync) syncwrapper ;;
+ sync) syncwrapper $2 ;;
purge) purge ;;
*) cat << EOF
mw: mutt-wizard, auto-configure email accounts for mutt