X-Git-Url: https://git.madduck.net/etc/offlineimap.git/blobdiff_plain/7f6aec793e90c72cb6699191e01ed412b6ceb3b7..4babcfff0c3609f7641f6d47976ba0b7910ab30f:/.bin/offlineimap?ds=sidebyside diff --git a/.bin/offlineimap b/.bin/offlineimap index a1d7f96..6ee4f0b 100755 --- a/.bin/offlineimap +++ b/.bin/offlineimap @@ -2,6 +2,7 @@ set -eu VAR=$HOME/.var/offlineimap +DEFAULT_ACCOUNT=madduck.net opts= accounts= @@ -18,12 +19,11 @@ for opt in "$@"; do esac done -info() { [ -n "$quiet" ] || echo >&2 "$@"; } +say() { [ -n "$quiet" ] || echo >&2 "$@"; } err() { echo >&2 "$@"; } if [ -z "$accounts" ]; then - err "E: no account(s) specified…" - exit 1 + accounts=$DEFAULT_ACCOUNT else accounts=$(echo "$accounts" | sed -e 's/,/ /g') fi