Do keepalive in km_dokey instead of directly in menu. Closes #2747.
-2008-08-29 16:54 -0700 Brendan Cully <brendan@kublai.com> (e0f0a7915711)
+2008-08-29 22:40 -0700 Brendan Cully <brendan@kublai.com> (e37ae3f79ec0)
+
+ * imap/imap_private.h: Dead code
+
+ * imap/imap.c: Remove redundant code
* imap/command.c, imap/imap.c, imap/imap_private.h, imap/message.c:
Use sorted headers in imap_exec_msgset. Fixes [e68f79fef249]. Closes
}
}
-#ifdef USE_IMAP
- imap_keepalive ();
- imap_disallow_reopen (Context);
-#endif
-
if (!attach_msg)
{
/* check for new mail in the incoming folders */
mutt_curs_set (1); /* fallback from the pager */
}
+#ifdef USE_IMAP
+ imap_disallow_reopen (Context);
+#endif
+
switch (op)
{
#include "keymap.h"
#include "mapping.h"
#include "mutt_crypt.h"
+#ifdef USE_IMAP
+#include "imap/imap.h"
+#endif
#include <stdlib.h>
#include <string.h>
{
/* ncurses doesn't return on resized screen when timeout is set to zero */
if (menu != MENU_EDITOR)
- timeout ((Timeout > 0 ? Timeout : 60) * 1000);
+ {
+ i = Timeout > 0 ? Timeout : 60;
+#ifdef USE_IMAP
+ imap_keepalive ();
+ if (ImapKeepalive && ImapKeepalive < i)
+ i = ImapKeepalive;
+#endif
+ timeout (i * 1000);
+ }
tmp = mutt_getch();
#include "mutt_menu.h"
#include "mbyte.h"
-#ifdef USE_IMAP
-#include "imap.h"
-#endif
-
#include <string.h>
#include <stdlib.h>
mutt_curs_set (0);
-#ifdef USE_IMAP
- imap_keepalive ();
-#endif
-
if (menu_redraw (menu) == OP_REDRAW)
return OP_REDRAW;
#include "mx.h"
-#ifdef USE_IMAP
-#include "imap_private.h"
-#endif
-
#include "mutt_crypt.h"
#include <sys/stat.h>
{
mutt_curs_set (0);
-#ifdef USE_IMAP
- imap_keepalive ();
-#endif
-
if (redraw & REDRAW_FULL)
{
SETCOLOR (MT_COLOR_NORMAL);