aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmail10
1 files changed, 10 insertions, 0 deletions
diff --git a/mail b/mail
index 776f9f4..14b48bd 100755
--- a/mail
+++ b/mail
@@ -6,6 +6,16 @@
# 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