(nnimap-wait-for-response): Always look (at least) at the previous line.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Thu, 16 Dec 2010 15:43:40 +0000 (16:43 +0100)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Thu, 16 Dec 2010 15:44:25 +0000 (16:44 +0100)
lisp/ChangeLog
lisp/nnimap.el

index 06c7825..91ba319 100644 (file)
@@ -3,6 +3,11 @@
        * shr.el (shr-insert): Set shr-start after deleting trailing space;
        don't delete it within indentation.
 
+2010-12-16  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * nnimap.el (nnimap-wait-for-response): Always look (at least) at the
+       previous line.
+
 2010-12-15  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * nnimap.el (nnimap-retrieve-group-data-early): Fix the syntax of the
index ae1929d..1b7db62 100644 (file)
@@ -1541,7 +1541,11 @@ textual parts.")
                      (not (re-search-backward
                            (format "^%d .*\n" sequence)
                            (if nnimap-streaming
-                               (max (point-min) (- (point) 500))
+                               (max (point-min)
+                                    (- (point) 500)
+                                    (save-excursion
+                                      (forward-line -1)
+                                      (point)))
                              (point-min))
                            t)))
            (when messagep