Date: Fri, 26 Mar 2004 17:23:43 +0200 (EET) From: keramida@ceid.upatras.gr (Giorgos Keramidas) To: freebsd-bugs@freebsd.org Subject: fetchmail-6.2.5 bug in FreeBSD-current Message-ID: <200403261523.i2QFNhGS044804@gothmog.gr>
next in thread | raw e-mail | index | archive | help
I'm in the middle of reinstalling all my ports/packages, after an upgrade to today's current and I just happened to notice a minor bug that breaks the POP3 protocol in version 6.2.5 of fetchmail. The error message that pointed me to the direction of the bug is marked below with an arrow: giorgos@gothmog[17:05]/home/giorgos$ fetchmail -v -v -v -a -K | more fetchmail: 6.2.5 querying igloo.linux.gr (protocol APOP) at Fri Mar 26 17:05:31 2004: poll started fetchmail: POP3< +OK Qpopper (version 4.0.5) at igloo.linux.gr starting. <21364.1080313531@igloo.linux.gr> fetchmail: POP3> APOP keramida d0d69aaea3370f3bc50c60a6aac5c088 fetchmail: POP3< +OK keramida has 59 visible messages (0 hidden) in 297764 octets. fetchmail: POP3> STAT fetchmail: POP3< +OK 59 297764 59 messages for keramida at igloo.linux.gr (297764 octets). -> fetchmail: cannot get a range of message sizes (1-59). fetchmail: POP3> QUIT fetchmail: POP3< +OK Pop server at igloo.linux.gr signing off. Apparently, a check in pop3.c uses reverse logic. Fixing fetchmail here required changing the following (in a patch-zz-local that I added to the port's files/ subdir): %% --- pop3.c.orig Fri Mar 26 17:08:39 2004 +++ pop3.c Fri Mar 26 17:08:12 2004 @@ -916,7 +916,7 @@ unsigned int num, size; /* for POP3, we can get the size of one mail only! */ - if (first != last) + if (first == last) { report(stderr, "cannot get a range of message sizes (%d-%d).\n", first, last); return(PS_PROTOCOL); %% Has anyone else seen/fixed this problem with version 6.2.5 or am I just doing silly, ignorant things here? - Giorgos
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403261523.i2QFNhGS044804>