Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 168404

Summary: mail-client/mutt crashes when sending mail in batch mode
Product: Gentoo Linux Reporter: Rich Paul <gentoo-bugs>
Component: Current packagesAssignee: Fernando J. Pereda (RETIRED) <ferdy>
Status: RESOLVED UPSTREAM    
Severity: critical CC: net-mail+disabled
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Rich Paul 2007-02-26 01:40:21 UTC
Mutt crashes when sending mail in batch mode, if sendmail fails.

This is because curses is automatically disabled if standard input is not a tty, but yet, mutt attempts to use the internal pager to display the sendmail output.  This results in a segfault.

The easiest solution is to add, at line #79 of main.c, the following two lines:
  if (option(OPTNOCURSES))
    Pager="cat";

This tells mutt, if curses is not in use, to simply use cat to dump the output.  It is an easy fix, and it works.
Comment 1 Fernando J. Pereda (RETIRED) gentoo-dev 2007-03-20 18:18:11 UTC
Sorry for being so late. Can I ask you to get this fix to upstream? I'm rather busy these days to do it myself.

If you aren't going to do so, please reopen this bug.

Thanks a lot.

- ferdy