#!/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 "$@" || exit $? if [ -x "$(command -v notmuch)" ]; then notmuch new || exit $? fi