Gnus development mailing list
 help / color / mirror / Atom feed
From: "Arne Jørgensen" <arne@arnested.dk>
Subject: Re: nnimap fails to fetch some articles
Date: Tue, 08 Mar 2005 23:42:01 +0100	[thread overview]
Message-ID: <87fyz5kbeu.fsf@seamus.arnested.dk> (raw)
In-Reply-To: <ilu7jkjhsvs.fsf@latte.josefsson.org>

[-- Attachment #1: Type: text/plain, Size: 569 bytes --]

Simon Josefsson <jas@extundo.com> writes:

> Bjorn Solberg <bjorn_ding@hekneby.org> 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 <http://arnested.dk/>


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: nnimap.patch --]
[-- Type: text/x-patch, Size: 758 bytes --]

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")))))

  parent reply	other threads:[~2005-03-08 22:42 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-05  0:47 Bjorn Solberg
2005-03-05 11:00 ` Simon Josefsson
2005-03-07 18:35   ` Bjorn Solberg
2005-03-07 21:45     ` Simon Josefsson
2005-03-07 22:00       ` Bjorn Solberg
2005-03-07 22:40       ` Bjorn Solberg
2005-03-08  0:40         ` Simon Josefsson
2005-03-08 19:44           ` Reiner Steib
2005-03-08 21:32             ` Simon Josefsson
2005-03-09 14:11               ` David S. Goldberg
2005-03-09 17:43                 ` Ted Stern
2005-03-10 15:56                   ` David S. Goldberg
2005-03-09 18:14                 ` Bjorn Solberg
2005-03-09 19:52                   ` David S. Goldberg
2005-03-08 22:42           ` Arne Jørgensen [this message]
2005-03-10  9:22             ` Simon Josefsson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fyz5kbeu.fsf@seamus.arnested.dk \
    --to=arne@arnested.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).