Package list metche / e436c68
Use mutt if available, else fallback to mail or sendmail. intrigeri 11 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
8080
8181 _mail() {
8282 local subject="$1"
83 if which mail > /dev/null ; then
83 if which mutt > /dev/null ; then
84 LC_ALL="$LOCALE" mutt -s "$subject" "$EMAIL_ADDRESS"
85 elif which mail > /dev/null ; then
8486 LC_ALL="$LOCALE" mail -s "$subject" "$EMAIL_ADDRESS"
8587 elif [ -x /usr/sbin/sendmail ]; then
8688 LC_ALL="$LOCALE" add_header "$subject"|/usr/sbin/sendmail "$EMAIL_ADDRESS"
87 elif which mutt > /dev/null ; then
88 LC_ALL="$LOCALE" mutt -s "$subject" "$EMAIL_ADDRESS"
8989 fi
9090 }
9191