]> git.eshelyaron.com Git - emacs.git/commitdiff
nnimap.el (nnimap-wait-for-response): Fix the end-point calculation to really conside...
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Thu, 16 Dec 2010 23:18:57 +0000 (23:18 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 16 Dec 2010 23:18:57 +0000 (23:18 +0000)
lisp/gnus/ChangeLog
lisp/gnus/nnimap.el

index 26538731932af838411b7f9454f65a649db3a314..b725a688fe67a9b31d43096a92865618d806c9f2 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 d1d6d058421684f73bb7bfd094e4d6c341768dda..34e57b6dc19b6c1be69460e3a84681fda13a81c6 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