From owner-freebsd-bugs@FreeBSD.ORG Fri Mar 26 07:24:42 2004 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A6BAC16A4CF for ; Fri, 26 Mar 2004 07:24:42 -0800 (PST) Received: from thalia.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id C101543D2F for ; Fri, 26 Mar 2004 07:24:40 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-a088.otenet.gr [212.205.215.88]) by thalia.otenet.gr (8.12.10/8.12.10) with ESMTP id i2QFO785022778 for ; Fri, 26 Mar 2004 17:24:29 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.11/8.12.11) with ESMTP id i2QFNhjm044807 for ; Fri, 26 Mar 2004 17:23:43 +0200 (EET) (envelope-from giorgos@gothmog.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.11/8.12.11/Submit) id i2QFNhGS044804; Fri, 26 Mar 2004 17:23:43 +0200 (EET) (envelope-from giorgos) Date: Fri, 26 Mar 2004 17:23:43 +0200 (EET) Message-Id: <200403261523.i2QFNhGS044804@gothmog.gr> From: keramida@ceid.upatras.gr (Giorgos Keramidas) To: freebsd-bugs@freebsd.org Subject: fetchmail-6.2.5 bug in FreeBSD-current X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2004 15:24:42 -0000 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