#!/bin/bash # Annoying mutt wrapper that the geeks will hate ;-) f-mutt () { schoolmaster () { yellow bold echo "*cough* please type \"yes\" \" no\" or \"help\"..." echo echo "I really recommend \"yes\" if you haven't done this before." echo white ; bblack umm } umm () { bold ; bred ; white echo "Configure settings first? (yes/no/help)" read COWBOYGEEK case $COWBOYGEEK in yes) bblack f-mail-settings ;; no) bblack && clear touch ~/.muttrc clear echo "OK - have fun... " echo "I've \"touched\" ~/.muttrc to make the warning stop, but any config is up to you now." echo bblack ; unbold exit ;; help) bblack f-mail ;; *) schoolmaster ;; esac } oops () { if [ -f $HOME/.muttrc ] ; then /usr/bin/mutt else echo bred ; yellow ; bold echo echo "Umm... you seem to be trying to use mutt for mail without configuring it." echo "This will only work if you know *exactly* what you are doing. " bblack umm fi } oops }