#!/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