From: Lars Magne Ingebrigtsen Date: Sun, 24 Oct 2010 19:23:58 +0000 (+0200) Subject: Have no outstanding messages if the IMAP server doesn't support streaming. X-Git-Url: http://cgit.sxemacs.org/?p=gnus;a=commitdiff_plain;h=163fac390726adec104482dcbe3da6d29a3b7cfa;hp=f5d10179f680069ea575c5bd12908b89ee95b081 Have no outstanding messages if the IMAP server doesn't support streaming. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c6d07ec79..3df1e3086 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -4,6 +4,8 @@ (nnimap-request-move-article): Try to be slighly faster by not requesting the entire message when moving. (nnimap-transform-headers): Don't bug out on bodiless articles. + (nnimap-send-command): Have no outstanding messages if the IMAP server + doesn't support streaming. 2010-10-24 Julien Danjou diff --git a/lisp/nnimap.el b/lisp/nnimap.el index 901320653..305b62d4e 100644 --- a/lisp/nnimap.el +++ b/lisp/nnimap.el @@ -1048,12 +1048,7 @@ textual parts.") (utf7-encode group t)) (nnimap-send-command "UID FETCH %d:* FLAGS" start) start group command) - sequences))) - ;; Some servers apparently can't have many outstanding - ;; commands, so throttle them. - (when (and (not nnimap-streaming) - (car sequences)) - (nnimap-wait-for-response (caar sequences)))) + sequences)))) sequences)))) (deffoo nnimap-finish-retrieve-group-infos (server infos sequences) @@ -1431,6 +1426,10 @@ textual parts.") (if (nnimap-newlinep nnimap-object) "" "\r")))) + ;; Some servers apparently can't have many outstanding + ;; commands, so throttle them. + (unless nnimap-streaming + (nnimap-wait-for-response nnimap-sequence)) nnimap-sequence) (defun nnimap-log-command (command)