From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/59970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Arne_J=C3=B8rgensen?= Newsgroups: gmane.emacs.gnus.general Subject: Re: nnimap fails to fetch some articles Date: Tue, 08 Mar 2005 23:42:01 +0100 Organization: Arne Joergensen -- http://arnested.dk/ Message-ID: <87fyz5kbeu.fsf@seamus.arnested.dk> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1110326332 21394 80.91.229.2 (8 Mar 2005 23:58:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 8 Mar 2005 23:58:52 +0000 (UTC) Original-X-From: ding-owner+M8511=ding+2Daccount=gmane.org@lists.math.uh.edu Wed Mar 09 00:58:52 2005 Original-Received: from malifon.math.uh.edu ([129.7.128.13] ident=mail) by ciao.gmane.org with esmtp (Exim 4.43) id 1D8oar-0003Mk-Gl for ding-account@gmane.org; Wed, 09 Mar 2005 00:58:30 +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 1D8oaz-0001a0-02 for ding-account@gmane.org; Tue, 08 Mar 2005 17:58:37 -0600 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1D8nXg-0001Wf-00 for ding@lists.math.uh.edu; Tue, 08 Mar 2005 16:51:08 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1D8nXd-0000rS-1L for ding@lists.math.uh.edu; Tue, 08 Mar 2005 16:51:05 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1D8nXb-0001kU-00 for ; Tue, 08 Mar 2005 23:51:03 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1D8nTW-0003NQ-L4 for ding@gnus.org; Tue, 08 Mar 2005 23:46:51 +0100 Original-Received: from 213.237.94.152 ([213.237.94.152]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Mar 2005 23:46:50 +0100 Original-Received: from arne by 213.237.94.152 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Mar 2005 23:46:50 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 50 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 213.237.94.152 X-Face: 5t,7/Y$&<1A_t.$vC2{pWZ{m@3_06;kcm]no{hgEL/}Uz(>XV6cl4}xO\v?-h3%>znNaZtq `~rf,GY1T%r=a.zH`hOb(-]'x)nI088Z&|e;V^h;/TShou User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:1XrheAzWXAm48NJ6bPk8YN+wle0= X-Spam-Score: -4.9 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu X-MailScanner-To: ding-account@gmane.org Xref: news.gmane.org gmane.emacs.gnus.general:59970 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:59970 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Simon Josefsson writes: > Bjorn Solberg writes: > >> + (with-current-buffer nntp-server-buffer >> + (sort-numeric-fields 1 1 (buffer-size))) >> >> and that seems to have done the trick. Thank you for the help! > > Applied, thanks! Since (point-max) is (+ 1 (buffer-size)) we should change (buffer-size) to (point-max). I had an error on an emtpy group (I think) where it tried to sort from 1 to 0. Maybe we should also sort from (point-min) instead of 1? Kind regards, -- Arne Jørgensen --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=nnimap.patch Index: lisp/nnimap.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/nnimap.el,v retrieving revision 7.19 diff -u -p -r7.19 nnimap.el --- lisp/nnimap.el 8 Mar 2005 20:41:10 -0000 7.19 +++ lisp/nnimap.el 8 Mar 2005 22:37:36 -0000 @@ -711,7 +711,7 @@ If EXAMINE is non-nil the group is selec (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))) + (sort-numeric-fields 1 (point-min) (point-max))) (and (numberp nnmail-large-newsgroup) (> nnimap-length nnmail-large-newsgroup) (nnheader-message 6 "nnimap: Retrieving headers...done"))))) --=-=-=--