<<< Date Index >>>     <<< Thread Index >>>

Re: IMAP command pipelining (batched mailbox polling) now in CVS



On Wednesday, 14 December 2005 at 01:44, Vincent Lefevre wrote:
> On 2005-12-13 16:34:55 -0800, Brendan Cully wrote:
> > On Wednesday, 14 December 2005 at 01:31, Vincent Lefevre wrote:
> > > Now when I wanted to synchronize the mailbox, I got an autologout
> > > error because I was idle for too long and the mailbox was closed.
> > > Doesn't the IMAP keepalive feature work any longer?
> > 
> > It is supposed to. What is your imap_keepalive set to?
> 
> The default value 900.
> 
> > Have you tried lowering it?
> 
> Not yet, but I've never had such a problem before the new IMAP code.
> Could the new $imap_idle (not modified, thus set) affect the behavior?

Sorry for the spam. Does the attached patch help?
diff -r 5e233a0957fd imap/imap.c
--- a/imap/imap.c       Wed Dec 14 00:28:59 2005
+++ b/imap/imap.c       Tue Dec 13 17:04:21 2005
@@ -1187,7 +1187,7 @@
   /* try IDLE first */
   if (option (OPTIMAPIDLE) && mutt_bit_isset (idata->capabilities, IDLE)
       && (idata->state != IMAP_IDLE
-          || time(NULL) >= idata->lastread + ImapKeepalive))
+          || force || time(NULL) >= idata->lastread + ImapKeepalive))
   {
     imap_cmd_start (idata, "IDLE");
     do