From ec3c4a4cf2b336d2ca507e30877115a3e37e4df4 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Tue, 8 Mar 2005 23:01:04 +0000 Subject: [PATCH] Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-165 Merge from gnus--rel--5.10 Patches applied: * miles@gnu.org--gnu-2005/gnus--rel--5.10 (patch 37) - Update from CVS 2005-03-08 Bjorn Solberg (tiny change) * lisp/gnus/nnimap.el (nnimap-retrieve-headers-from-server): Sort NOV buffer (since IMAP server might return FETCH response out of order, and the nntp buffer must be sorted). --- lisp/gnus/ChangeLog | 6 ++++++ lisp/gnus/nnimap.el | 2 ++ 2 files changed, 8 insertions(+) diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 76d4cb419cb..651877e0240 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,3 +1,9 @@ +2005-03-08 Bjorn Solberg (tiny change) + + * nnimap.el (nnimap-retrieve-headers-from-server): Sort NOV + buffer (since IMAP server might return FETCH response out of + order, and the nntp buffer must be sorted). + 2005-03-04 Reiner Steib * message.el: Don't autoload former message-utils variables. diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el index 59b0178de42..bd75f8576ff 100644 --- a/lisp/gnus/nnimap.el +++ b/lisp/gnus/nnimap.el @@ -665,6 +665,8 @@ If EXAMINE is non-nil the group is selected read-only." (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"))))) -- 2.39.2