Thanks for the patch! This fixed a problem that I have had
fetching mail from a Cubic Circle's v1.31 pop/imap server
app that my ISP uses. I had just done an upgrade from
fetchmail 5.9.11 to 6.0.0 when I discovered this problem.
With a little investigating I found that the POP3 problem
occurred starting with 5.9.14, the next oldest version of
fetchmail that I was able to find. What I found was that
POP3 appeared to be broken in all versions of fetchmail
that I was able to download, compile and test from 5.9.14
up to and including 6.1.0. All of them would fail with
"Query status=4 (PROTOCOL)" and no mail would be fetched.
IMAP worked fine in all case, but I have needed POP3 to
work in other situations.
Bill
On 2002.10.03 04:53 Sunil Shetye wrote:
Quoting from Mikhail Zabaluev's mail on Wed, Oct 02, 2002 at 12:36:26PM
+0400:
> I'm having problems making fetchmail 6.1.0 retrieve my POP3 mailbox.
> It stumbles over the first message, which is left there by the IMAP
> server:
Oops! This was due to my patch to optimise for retained mails. The
problem is that readbody cannot be suppressed for POP3 as the body is
already being sent. Here is a patch which suppresses reading the body
only if the protocol supports it. This logic is extended to transient
(dns) and refused (duplicate mail) errors.
=======================================================================
diff -Naur fetchmail-6.1.0.orig/driver.c fetchmail-6.1.0/driver.c
--- fetchmail-6.1.0.orig/driver.c Mon Sep 9 13:34:26 2002
+++ fetchmail-6.1.0/driver.c Thu Oct 3 14:10:51 2002
@@ -493,11 +493,25 @@
err = readheaders(mailserver_socket, len, msgsizes[num-1],
<<<< Stuff Deleted >>>>
--
William M. Perkins E-mail - wmp(_at_)grnwood(_dot_)net
The Greenwood UNIX Systems Administration
Richmond, Virginia (Solaris, Linux, HP-UX)