pop3.el (pop3-number-of-responses): Search for "+OK", not "+OK ".
authorKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 6 Sep 2010 02:05:19 +0000 (02:05 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 6 Sep 2010 02:05:19 +0000 (02:05 +0000)
lisp/ChangeLog
lisp/pop3.el

index 7c71b06..1bc7f3e 100644 (file)
@@ -1,3 +1,8 @@
+2010-09-06  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * pop3.el: Require cl when compiling.
+       (pop3-number-of-responses): Search for "+OK", not "+OK ".
+
 2010-09-05  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * gnus-start.el (gnus-get-unread-articles): Don't bother with groups
index a5b4391..a5470d7 100644 (file)
@@ -33,6 +33,7 @@
 
 ;;; Code:
 
+(eval-when-compile (require 'cl))
 (require 'mail-utils)
 (defvar parse-time-months)
 
@@ -204,7 +205,7 @@ Use streaming commands."
   (let ((responses 0))
     (save-excursion
       (goto-char (point-min))
-      (while (or (and (re-search-forward "^\\+OK " nil t)
+      (while (or (and (re-search-forward "^\\+OK" nil t)
                      (or (not endp)
                          (re-search-forward "^\\.\r?\n" nil t)))
                 (re-search-forward "^-ERR " nil t))