X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=curs_main.c;h=14bb5529ce8a1a7645b1aa015e15b31b09abef27;hb=e9cbbd6d2f13c05021af4470332317c727acb693;hp=59817668e6c4e76bebac808c48b6efa24b6fadb8;hpb=82c978b426a6669d432c22f0773d807e2a974747;p=apps%2Fmadmutt.git diff --git a/curs_main.c b/curs_main.c index 5981766..14bb552 100644 --- a/curs_main.c +++ b/curs_main.c @@ -537,6 +537,8 @@ int mutt_index_menu (void) mutt_error _("Mailbox was externally modified. Flags may be wrong."); else if (check == M_NEW_MAIL) { + /* on new mail: redraw sidebar */ + draw_sidebar (CurrentMenu); mutt_message _("New mail in this mailbox."); if (option (OPTBEEPNEW)) beep (); @@ -562,8 +564,10 @@ int mutt_index_menu (void) { /* check for new mail in the incoming folders */ oldcount = newcount; - if ((newcount = mutt_buffy_check (0)) != oldcount) + if ((newcount = mutt_buffy_check (0)) != oldcount){ menu->redraw |= REDRAW_STATUS; + menu->redraw |= REDRAW_SIDEBAR; + } if (do_buffy_notify) { if (mutt_buffy_notify () && option (OPTBEEPNEW)) @@ -575,7 +579,7 @@ int mutt_index_menu (void) if (op != -1) mutt_curs_set (0); - + if (menu->redraw & REDRAW_SIDEBAR) draw_sidebar(menu->menu); if (menu->redraw & REDRAW_FULL) { menu_redraw_full (menu); @@ -1400,7 +1404,7 @@ CHECK_IMAP_ACL(IMAP_ACL_DELETE); if ((menu->menu == MENU_MAIN) && (query_quadoption (OPT_QUIT, - _("Exit Mutt without saving?")) == M_YES)) + _("Exit Mutt-ng without saving?")) == M_YES)) { if (Context) { @@ -2372,6 +2376,7 @@ CHECK_IMAP_ACL(IMAP_ACL_DELETE); case OP_BUFFY_LIST: mutt_buffy_list (); + menu->redraw = REDRAW_FULL; break; case OP_VIEW_ATTACHMENTS: @@ -2394,6 +2399,8 @@ CHECK_IMAP_ACL(IMAP_ACL_DELETE); case OP_SIDEBAR_SCROLL_DOWN: case OP_SIDEBAR_NEXT: case OP_SIDEBAR_PREV: + case OP_SIDEBAR_NEXT_NEW: + case OP_SIDEBAR_PREV_NEW: scroll_sidebar(op, menu->menu); break; default: