#!/bin/sh # # m # # reads mail, searching for the mail directory # # Last updated by rb on Wed Oct 22 18:21:36 EST 2003 # maildir_1=$HOME/Mail/IN maildir_2=$HOME/Mail mutt=/usr/local/bin/mutt if [ "X$*" = "X" ] ; then $mutt else for mailfile in $* do if [ -f $maildir_1/$mailfile ]; then $mutt -z -f$maildir_1/$mailfile elif [ -f $maildir_2/$mailfile ]; then $mutt -z -f$maildir_2/$mailfile elif [ -f $mailfile ]; then $mutt -z -f$mailfile else echo Can\'t find file for $mutt echo Try specifying it fully on the command line. fi done fi