diff options
author | Luke Smith <luke@lukesmith.xyz> | 2019-04-19 19:15:19 -0400 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2019-04-19 19:15:19 -0400 |
commit | cc4f01090f1e35cda9cf279fd9ef54d387bab1f7 (patch) | |
tree | 8ba42950329c8ff95f89ee68c68b2d39462a776e /mw | |
parent | c529b38fceee774359557f268ca8ee3a27da8fa3 (diff) |
sync message only if offline
Diffstat (limited to 'mw')
-rwxr-xr-x | mw | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -216,7 +216,7 @@ finalize() { \ grep -i -m 1 spam "$tmpdir/title_boxes" | formatShortcut S spam "$title" grep -i -m 1 junk "$tmpdir/title_boxes" | formatShortcut j junk "$title" grep -i -m 1 archive "$tmpdir/title_boxes" | formatShortcut a archive "$title" - printf "All done.\\n\033[33mYou should now be able to run \`\033[32mmbsync $title\033[33m\` to begin to download your mail.\033[0m\\n" + [ "$accounttype" = "offline" ] && printf "All done.\\n\033[33mYou should now be able to run \`\033[32mmbsync $title\033[33m\` to begin to download your mail.\033[0m\\n" } confirm() { printf "Are you \033[31;1mreally\033[0m sure you want to %s?\\n\t" "$@" && read -r input && ! echo "$input" | grep -i "y\(es\)*" >/dev/null && printf "That doesn't seem like a yes to me.\\n\\n" && return 1 |