Fix the end-point calculation to really consider the last line.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Thu, 16 Dec 2010 22:59:16 +0000 (23:59 +0100)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Thu, 16 Dec 2010 22:59:16 +0000 (23:59 +0100)
lisp/ChangeLog
lisp/nnimap.el

index 0605159..4e07d48 100644 (file)
@@ -1,3 +1,8 @@
+2010-12-16  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * nnimap.el (nnimap-wait-for-response): Fix the end-point calculation
+       to really consider the last line.
+
 2010-12-16  Daiki Ueno  <ueno@unixuser.org>
 
        * auth-source.el (auth-source-gpg-encrypt-to): New variable to set the
index d1d6d05..34e57b6 100644 (file)
@@ -1565,10 +1565,11 @@ textual parts.")
                            (format "^%d .*\n" sequence)
                            (if nnimap-streaming
                                (max (point-min)
-                                    (- (point) 500)
-                                    (save-excursion
-                                      (forward-line -1)
-                                      (point)))
+                                    (min
+                                     (- (point) 500)
+                                     (save-excursion
+                                       (forward-line -1)
+                                       (point))))
                              (point-min))
                            t)))
            (when messagep