#!/bin/bash # # Wrapper for mail application. # # Parameters BASENAME="`basename $0`" # Check for mutt if ! which mutt > /dev/null; then if [ -x "/usr/bin/mail" ]; then /usr/bin/mail exit $? else exit 1 fi fi # Check configuration if [ ! -e "$HOME/.custom/muttrc" ]; then mkdir -p $HOME/.custom/mutt touch $HOME/.custom/muttrc touch $HOME/.custom/mutt/aliases fi # Check INBOX if [ ! -e "$HOME/mail/INBOX" ]; then mkdir -p $HOME/mail/INBOX/{cur,new,tmp} fi # Dispatch using firejail #firejail --quiet mutt # Dipatching using mutt # Should might call firejail anyway if properly configured at ~/apps/firejail mutt