mutt/2800: mutt crashes if piped mail to send and sendmail fails.
>Synopsis: mutt crashes if piped mail to send and sendmail fails.
>Arrival-Date: Mon Feb 26 02:47:38 +0100 2007
>Originator: Rich Paul
mutt crashes if piped mail to send and sendmail fails.
echo mail | mutt me@xxxxxxxx
This happens because when mutt sees !isatty(0), it sets OPTNOCURSES. But yet,
when sendmail fails, it attempts to use the internal pager to display the
One solution which works for me is to add the following at line #77 of main.c:
This causes mutt to cat the output file, rather then paging it or dying trying.
Works for me.