Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 168404 - mail-client/mutt crashes when sending mail in batch mode
Summary: mail-client/mutt crashes when sending mail in batch mode
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Fernando J. Pereda (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-26 01:40 UTC by Rich Paul
Modified: 2007-03-20 18:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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