From: Bjorn Solberg <bjorn_ding@hekneby.org>
Subject: Re: nnimap fails to fetch some articles
Date: Mon, 07 Mar 2005 14:00:53 -0800 [thread overview]
Message-ID: <m3fyz7xgiy.fsf@pacbell.net> (raw)
In-Reply-To: <ilubr9vi0z7.fsf@latte.josefsson.org> (Simon Josefsson's message of "Mon, 07 Mar 2005 22:45:48 +0100")
Simon Josefsson writes:
> Bjorn Solberg <bjorn_ding@hekneby.org> writes:
[...]
>> " *nntpd*" shows an entry for all 5 messages. I have received new
>> messages since last, so now it show only 2 messages when I do 5 RET.
>> Which means this is somehow content-related.
>>
>> However, I see a pattern in " *nntpd*" now: " *nntpd*" shows that the
>> messages aren't sorted by id. For example, doing 5 RET I see entries 793
>> 795 794 792 791 in " *nntpd*", and only 793 and 795 is shown in the
>> Summary buffer.
> 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")))))
When compiling, it says:
Compiling file c:/emacs-21.3/site-lisp/gnus-CURRENT-20050304/lisp/nnimap.el at Mon Mar 07 13:51:46 2005
** sort-lines called with 0 arguments, but requires 3
and when running it:
nnimap-retrieve-headers-from-server: Wrong number of arguments: #[(reverse beg end) }ebÃ
ÄÅ#*" [beg end reverse sort-subr forward-line end-of-line] 4 ("c:/emacs-21.3/lisp/sort.elc" . 4220) "P
r"], 0
C-h f sort-lines says:
sort-lines is an interactive compiled Lisp function in `sort'.
(sort-lines REVERSE BEG END)
Sort lines in region alphabetically; argument means descending order.
Called from a program, there are three arguments:
REVERSE (non-nil means reverse order), BEG and END (region to sort).
The variable `sort-fold-case' determines whether alphabetic case affects
the sort order.
So I suppose we need to pass in the beginning and end of the buffer also,
or is that something the macro surrounding it should have taken care of?
(About time I start learning some elisp, I guess.)
Bjorn.
next prev parent reply other threads:[~2005-03-07 22:00 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 [this message]
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
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=m3fyz7xgiy.fsf@pacbell.net \
--to=bjorn_ding@hekneby.org \
/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).