mutt stable branch with some hacks

Change sidebar next/prev-new to look at buffy->new too.

Look at new in addition to msg_unread count, to account for when
$mail_check_stats is unset or when the sidebar only shows the %n
status flag.

+3 -3
+3 -3
sidebar.c
··· 73 73 b = Incoming; 74 74 if (!b || (b == HilBuffy)) 75 75 break; 76 - if (b->msg_unread > 0) 76 + if (b->new || b->msg_unread > 0) 77 77 return b; 78 78 } while (b); 79 79 ··· 103 103 b = Outgoing; 104 104 if (!b || (b == HilBuffy)) 105 105 break; 106 - if (b->msg_unread > 0) 106 + if (b->new || b->msg_unread > 0) 107 107 return b; 108 108 } while (b); 109 109 ··· 403 403 if (!new_only) 404 404 continue; 405 405 406 - if ((b == OpnBuffy) || (b->msg_unread > 0) || 406 + if ((b == OpnBuffy) || (b->msg_unread > 0) || b->new || 407 407 (b == HilBuffy) || (b->msg_flagged > 0)) 408 408 continue; 409 409