From 4babcfff0c3609f7641f6d47976ba0b7910ab30f Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 23 Dec 2011 14:04:26 +0100 Subject: [PATCH 1/1] set a default account --- .bin/offlineimap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.bin/offlineimap b/.bin/offlineimap index 7e0e8b9..6ee4f0b 100755 --- a/.bin/offlineimap +++ b/.bin/offlineimap @@ -2,6 +2,7 @@ set -eu VAR=$HOME/.var/offlineimap +DEFAULT_ACCOUNT=madduck.net opts= accounts= @@ -22,8 +23,7 @@ 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 -- 2.39.5