fetchmail-friends
[Top] [All Lists]

[fetchmail] Re: upgraded, now fails (complete -v trace)

2003-06-16 22:54:26
Quoting from B Wooster's mail on Tue, Jun 17, 2003 at 01:33:15AM +0000:
fetchmail: POP3> CAPA
fetchmail: POP3> USER pop
fetchmail: POP3> PASS
fetchmail: Unknown login or authentication error on 
pop(_at_)www(_dot_)hostname
fetchmail: POP3> QUIT
fetchmail: 6.2.2 querying www.hostname (protocol POP3) at Mon Jun 16 
21:22:59
2003: poll completed
fetchmail: Query status=15
fetchmail: normal termination, status 15

This is weird. An exit status of 15 is not expected to occur. There is
probably a bug in a recent patch for imap IDLE timeout. Because of
this, a PS_IDLETIMEOUT is always returned instead of PS_SOCKET. Please
try this patch:

========================================================================
diff -Naur fetchmail-6.2.2.orig/driver.c fetchmail-6.2.2/driver.c
--- fetchmail-6.2.2.orig/driver.c       2003-06-11 14:35:39.000000000 +0530
+++ fetchmail-6.2.2/driver.c    2003-06-17 11:09:00.000000000 +0530
@@ -69,8 +69,8 @@
 flag peek_capable;     /* can we peek for better error recovery? */
 int mailserver_socket_temp = -1;       /* socket to free if connect timeout */ 
 
-static int timeoutcount;               /* count consecutive timeouts */
-static int idletimeout;                        /* timeout occured in idle 
stage? */
+volatile static int timeoutcount = 0;  /* count consecutive timeouts */
+volatile static int idletimeout = 0;   /* timeout occured in idle stage? */
 
 static jmp_buf restart;
 
@@ -89,7 +89,7 @@
     if (timeleft == 0)
        timeoutcount = 0;
 
-    idletimeout = 1;
+    idletimeout = 0;
 
     ntimeout.it_interval.tv_sec = ntimeout.it_interval.tv_usec = 0;
     ntimeout.it_value.tv_sec  = timeleft;
========================================================================

-- 
Sunil Shetye.

<Prev in Thread] Current Thread [Next in Thread>