From: Katsumi Yamaoka Date: Mon, 6 Sep 2010 02:09:42 +0000 (+0000) Subject: pop3.el (pop3-number-of-responses): Search for "+OK", not "+OK ". X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~48^2~53 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ed96ace9289c2e04db3e8fc63321fde248c3f3f8;p=emacs.git pop3.el (pop3-number-of-responses): Search for "+OK", not "+OK ". --- diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 961518b964f..5f9e1347787 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,3 +1,8 @@ +2010-09-06 Katsumi Yamaoka + + * pop3.el: Require cl when compiling. + (pop3-number-of-responses): Search for "+OK", not "+OK ". + 2010-09-05 Lars Magne Ingebrigtsen * gnus-start.el (gnus-get-unread-articles): Don't bother with groups diff --git a/lisp/gnus/pop3.el b/lisp/gnus/pop3.el index a5b43914c21..a5470d7d818 100644 --- a/lisp/gnus/pop3.el +++ b/lisp/gnus/pop3.el @@ -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))