#!/bin/sh MUTT="/usr/bin/mutt" [ -x $MUTT ] || exit 1 mutt_version="$($MUTT -v | head -1)" GPG_TTY=$(tty || echo "") [ -n "$GPG_TTY" ] && export GPG_TTY [ -n "$DISPLAY" -a -n "$mutt_version" ] && echo -en "\e]0;$mutt_version\a" exec $MUTT "$@"