Commit 248aa88f authored by Thomas Roessler's avatar Thomas Roessler

Don't do Context updates from the background, part 2.

parent 112add1c
......@@ -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;
......
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment