* 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)
set_option (OPTSEARCHINVALID);
}
+
+#ifdef USE_IMAP
+ imap_disallow_reopen (Context);
+#endif
}
check_lock = 0;
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;
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)
{