|
From: Sunil S. <sh...@bo...> - 2006-03-01 12:47:06
|
I think this issue is similar to the one reported by Casper
Gripenberg. Could you try this patch and report if it works for you?
=========================================================================
Index: fetchmail/imap.c
===================================================================
--- fetchmail/imap.c (revision 4696)
+++ fetchmail/imap.c (working copy)
@@ -633,11 +633,12 @@
if (ok != 0 || stage != STAGE_IDLE)
return(ok);
- /* wait (briefly) for an unsolicited status update */
- ok = imap_ok(sock, NULL);
- /* again, this is new mail or an error */
- if (ok != PS_IDLETIMEOUT)
- return(ok);
+ /* we used to wait for an unsolicited status update here with
+ * imap_ok(). However, since no command has actually been
+ * sent, there is no "tag" which can be used for comparison.
+ * Just sleep instead */
+ set_timeout(0);
+ sleep(mytimeout);
}
/* restore normal timeout value */
=========================================================================
--
Sunil Shetye.
|