X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=browser.c;h=75bb211b9596d0651bf33858b06463228f3f498f;hp=d4a7157d86fae30c358772cb75de76f817f357c2;hb=55a238fef5db8ed7cc0c58654ba15df9638b25b4;hpb=ba5e3af4ea19e1d20c80941c077039871ec84258 diff --git a/browser.c b/browser.c index d4a7157..75bb211 100644 --- a/browser.c +++ b/browser.c @@ -12,6 +12,7 @@ #endif #include "mutt.h" +#include "enter.h" #include "mx.h" #include "mutt_curses.h" #include "mutt_menu.h" @@ -19,6 +20,8 @@ #include "mapping.h" #include "sort.h" #include "browser.h" +#include "attach.h" + #ifdef USE_IMAP #include "imap.h" #include "imap/mx_imap.h" @@ -484,6 +487,7 @@ static int examine_directory (MUTTMENU * menu, struct browser_state *state, for (tmp = news->list; tmp; tmp = tmp->next) { if (!(data = (NNTP_DATA *) tmp->data)) continue; + nntp_sync_sidebar (data); if (prefix && *prefix && strncmp (prefix, data->group, str_len (prefix)) != 0) continue; @@ -491,6 +495,7 @@ static int examine_directory (MUTTMENU * menu, struct browser_state *state, continue; add_folder (menu, state, data->group, NULL, data, data->new); } + sidebar_draw (CurrentMenu); } else #endif /* USE_NNTP */ @@ -573,14 +578,14 @@ static int examine_mailboxes (MUTTMENU * menu, struct browser_state *state) init_state (state, menu); for (tmp = news->list; tmp; tmp = tmp->next) { - if ((data = (NNTP_DATA *) tmp->data) != NULL && (data->new || - (data->subscribed - && - (!option - (OPTSHOWONLYUNREAD) - || data->unread)))) + if ((data = (NNTP_DATA*) tmp->data) == NULL) + continue; + nntp_sync_sidebar (data); + if ((data->new || (data->subscribed && + (!option (OPTSHOWONLYUNREAD)|| data->unread)))) add_folder (menu, state, data->group, NULL, data, data->new); } + sidebar_draw (CurrentMenu); } else #endif @@ -1306,6 +1311,8 @@ void _mutt_select_file (char *f, size_t flen, int flags, char ***files, break; case OP_BUFFY_LIST: + if (option (OPTFORCEBUFFYCHECK)) + buffy_check (1); buffy_list (); break;