# HG changeset patch # User Katsumi Yamaoka # Date 1283738982 0 # Node ID 3d216398af49621ee31c2afd8bcf4ac6cc4c1f09 # Parent 109e3a627792ff1e9a895c57466d2d9ee9bb1e4a pop3.el (pop3-number-of-responses): Search for "+OK", not "+OK ". diff -r 109e3a627792 -r 3d216398af49 lisp/gnus/ChangeLog --- a/lisp/gnus/ChangeLog Mon Sep 06 00:48:40 2010 +0000 +++ b/lisp/gnus/ChangeLog Mon Sep 06 02:09:42 2010 +0000 @@ -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 -r 109e3a627792 -r 3d216398af49 lisp/gnus/pop3.el --- a/lisp/gnus/pop3.el Mon Sep 06 00:48:40 2010 +0000 +++ b/lisp/gnus/pop3.el Mon Sep 06 02:09:42 2010 +0000 @@ -33,6 +33,7 @@ ;;; Code: +(eval-when-compile (require 'cl)) (require 'mail-utils) (defvar parse-time-months) @@ -204,7 +205,7 @@ (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))