changeset 60526:bbb951948fa8

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 <bjorn_ding@hekneby.org> (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).
author Miles Bader <miles@gnu.org>
date Tue, 08 Mar 2005 23:01:04 +0000
parents aa8999e30efb
children 0590353a779b 29e773288013
files lisp/gnus/ChangeLog lisp/gnus/nnimap.el
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/gnus/ChangeLog	Tue Mar 08 21:51:48 2005 +0000
+++ b/lisp/gnus/ChangeLog	Tue Mar 08 23:01:04 2005 +0000
@@ -1,3 +1,9 @@
+2005-03-08  Bjorn Solberg <bjorn_ding@hekneby.org>  (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  <Reiner.Steib@gmx.de>
 
 	* message.el: Don't autoload former message-utils variables.
--- a/lisp/gnus/nnimap.el	Tue Mar 08 21:51:48 2005 +0000
+++ b/lisp/gnus/nnimap.el	Tue Mar 08 23:01:04 2005 +0000
@@ -665,6 +665,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")))))