From: Katsumi Yamaoka Date: Mon, 6 Sep 2010 02:05:19 +0000 (+0000) Subject: pop3.el (pop3-number-of-responses): Search for "+OK", not "+OK ". X-Git-Url: https://cgit.sxemacs.org/?a=commitdiff_plain;h=e5cd10ffe95b0c72049c18615a1fcaab30392d2e;p=gnus pop3.el (pop3-number-of-responses): Search for "+OK", not "+OK ". --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7c71b06d9..1bc7f3e50 100644 --- a/lisp/ChangeLog +++ b/lisp/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/pop3.el b/lisp/pop3.el index a5b43914c..a5470d7d8 100644 --- a/lisp/pop3.el +++ b/lisp/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))