mutt stable branch with some hacks
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix arithmetic exception due to menu->pagelen being negative.

Resizing the terminal window down to two lines when in an empty
mailbox causes mutt to crash due to division by zero since menu->max
equals 0 and menu->pagelen < 0 in status.c:205.

Fixing the problem at this specific line felt wrong since I did notice
menu->pagelen being negative. The pagelen is inherited from the rows
calculation in mutt_reflow_windows. Since the number of lines can
potentially be smaller than the accumulated number of rows acquired by
the status, help and message window, make sure the calculation does
not turn negative.

+2 -2
+2 -2
curs_lib.c
··· 531 531 MuttMessageWindow->row_offset = LINES - 1; 532 532 533 533 memcpy (MuttIndexWindow, MuttStatusWindow, sizeof (mutt_window_t)); 534 - MuttIndexWindow->rows = LINES - MuttStatusWindow->rows - MuttHelpWindow->rows - 535 - MuttMessageWindow->rows; 534 + MuttIndexWindow->rows = MAX(LINES - MuttStatusWindow->rows - 535 + MuttHelpWindow->rows - MuttMessageWindow->rows, 0); 536 536 MuttIndexWindow->row_offset = option (OPTSTATUSONTOP) ? MuttStatusWindow->rows : 537 537 MuttHelpWindow->rows; 538 538