From ed96ace9289c2e04db3e8fc63321fde248c3f3f8 Mon Sep 17 00:00:00 2001 From: Katsumi Yamaoka Date: Mon, 6 Sep 2010 02:09:42 +0000 Subject: [PATCH] pop3.el (pop3-number-of-responses): Search for "+OK", not "+OK ". --- lisp/gnus/ChangeLog | 5 +++++ lisp/gnus/pop3.el | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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)) -- 2.11.4.GIT