From: Thomas Roessler Date: Mon, 28 Feb 2000 17:27:54 +0000 (+0000) Subject: Don't do Context updates from the background, part 2. X-Git-Tag: mutt-1-1-6-rel~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=248aa88fc57b445b6c8df60890a7353a48f1dfec;p=mutt Don't do Context updates from the background, part 2. --- diff --git a/curs_main.c b/curs_main.c index e2fea866..5936a53d 100644 --- a/curs_main.c +++ b/curs_main.c @@ -324,6 +324,11 @@ int mutt_index_menu (void) * changed about the file (either we got new mail or the file was * modified underneath us.) */ + +#ifdef USE_IMAP + imap_allow_reopen (Context); +#endif + index_hint = (Context->vcount) ? CURHDR->index : 0; if ((check = mx_check_mailbox (Context, &index_hint, check_lock)) < 0) @@ -453,6 +458,10 @@ int mutt_index_menu (void) set_option (OPTSEARCHINVALID); } + +#ifdef USE_IMAP + imap_disallow_reopen (Context); +#endif } check_lock = 0; diff --git a/pager.c b/pager.c index 6f530eee..7115f9e6 100644 --- a/pager.c +++ b/pager.c @@ -1431,7 +1431,6 @@ mutt_pager (const char *banner, const char *fname, int flags, pager_t *extra) int indicator = indexlen / 3; /* the indicator line of the PI */ int old_PagerIndexLines; /* some people want to resize it * while inside the pager... */ - int oldcount = -1; if (!(flags & M_SHOWCOLOR)) flags |= M_SHOWFLAT; @@ -1482,26 +1481,12 @@ mutt_pager (const char *banner, const char *fname, int flags, pager_t *extra) strcat (helpstr, buffer); } - if (Context) - oldcount = Context->msgcount; - while (ch != -1) { mutt_curs_set (0); if (mutt_buffy_notify () && option (OPTBEEPNEW)) beep (); - else if (Context && Context->msgcount != oldcount) - { - if (Context && Context->msgcount > oldcount) - { - mutt_message (_("New mail in this mailbox.")); - if (option (OPTBEEPNEW)) - beep (); - redraw |= REDRAW_STATUS; - } - oldcount = Context->msgcount; - } if (redraw & REDRAW_FULL) {