From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/59961 Path: news.gmane.org!not-for-mail From: Bjorn Solberg Newsgroups: gmane.emacs.gnus.general Subject: Re: nnimap fails to fetch some articles Date: Mon, 07 Mar 2005 14:40:06 -0800 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1110234971 19502 80.91.229.2 (7 Mar 2005 22:36:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 7 Mar 2005 22:36:11 +0000 (UTC) Original-X-From: ding-owner+M8502@lists.math.uh.edu Mon Mar 07 23:36:11 2005 Original-Received: from malifon.math.uh.edu ([129.7.128.13] ident=mail) by ciao.gmane.org with esmtp (Exim 4.43) id 1D8QpN-00037T-LH for ding-account@gmane.org; Mon, 07 Mar 2005 23:35:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1D8Qtf-0007pr-00; Mon, 07 Mar 2005 16:40:19 -0600 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1D8Qta-0007pm-00 for ding@lists.math.uh.edu; Mon, 07 Mar 2005 16:40:14 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1D8QtY-0002zz-0t for ding@lists.math.uh.edu; Mon, 07 Mar 2005 16:40:12 -0600 Original-Received: from adsl-69-235-47-93.dsl.irvnca.pacbell.net ([69.235.47.93] helo=maui53.famsolberg.com) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1D8QtU-00007b-00 for ; Mon, 07 Mar 2005 23:40:08 +0100 Original-Received: from www.famsolberg.com (newpc [192.168.8.100]) by maui53.famsolberg.com (8.12.11/8.12.11) with ESMTP id j27Me65d030786 for ; Mon, 7 Mar 2005 14:40:06 -0800 Original-Received: from localhost.localdomain (newpc [127.0.0.1]) by www.famsolberg.com (8.12.8/8.12.8) with ESMTP id j27Me6iD006737 for ; Mon, 7 Mar 2005 14:40:06 -0800 Original-Received: (from bhso@localhost) by localhost.localdomain (8.12.8/8.12.8/Submit) id j27Me6PP006735; Mon, 7 Mar 2005 14:40:06 -0800 X-Authentication-Warning: localhost.localdomain: bhso set sender to bhso@pacbell.net using -f Original-To: ding@gnus.org In-Reply-To: (Simon Josefsson's message of "Mon, 07 Mar 2005 22:45:48 +0100") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.2 (gnu/linux) X-Spam-Score: -4.9 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu X-MailScanner-From: ding-owner+m8502@lists.math.uh.edu X-MailScanner-To: ding-account@gmane.org Xref: news.gmane.org gmane.emacs.gnus.general:59961 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:59961 Simon Josefsson writes: [...] > Ah, thanks, that is it. The IMAP server returned the articles out of > order. Which I think is perfectly legal. Maybe the following patch > help? Untested. > --- nnimap.el 04 Mar 2005 17:59:01 +0100 7.17 > +++ nnimap.el 07 Mar 2005 22:45:30 +0100 > @@ -710,6 +710,8 @@ > (if (imap-capability 'IMAP4rev1) > (format "BODY.PEEK[HEADER.FIELDS %s])" headers) > (format "RFC822.HEADER.LINES %s)" headers))))) > + (with-current-buffer nntp-server-buffer > + (sort-lines)) > (and (numberp nnmail-large-newsgroup) > (> nnimap-length nnmail-large-newsgroup) > (nnheader-message 6 "nnimap: Retrieving headers...done"))))) I did --- nnimap.el 04 Mar 2005 17:59:01 +0100 7.17 +++ nnimap.el 07 Mar 2005 22:45:30 +0100 @@ -710,6 +710,8 @@ (if (imap-capability 'IMAP4rev1) (format "BODY.PEEK[HEADER.FIELDS %s])" headers) (format "RFC822.HEADER.LINES %s)" headers))))) + (with-current-buffer nntp-server-buffer + (sort-numeric-fields 1 1 (buffer-size))) (and (numberp nnmail-large-newsgroup) (> nnimap-length nnmail-large-newsgroup) (nnheader-message 6 "nnimap: Retrieving headers...done"))))) and that seems to have done the trick. Thank you for the help! Bjorn.