X-Git-Url: https://git.madduck.net/etc/offlineimap.git/blobdiff_plain/ac1e365a2011a804f8c2f948be4bfe6612d10e85..7ab076e9a34703804e9559bacb050342f3b65f6f:/.bin/offlineimap diff --git a/.bin/offlineimap b/.bin/offlineimap new file mode 100755 index 0000000..ad01298 --- /dev/null +++ b/.bin/offlineimap @@ -0,0 +1,17 @@ +#!/bin/sh +set -eu + +if ! test -t 0; then + echo Renicing because we are not run interactively… >&2 + renice 20 -p $$ >/dev/null + ionice -c2 -n7 -p $$ +fi + +ret=0 +/usr/bin/offlineimap -o "$@" || ret=$? + +if [ -x "$(command -v notmuch)" ]; then + notmuch new +fi + +exit $ret