aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKatsumi Yamaoka2010-09-06 02:09:42 +0000
committerKatsumi Yamaoka2010-09-06 02:09:42 +0000
commited96ace9289c2e04db3e8fc63321fde248c3f3f8 (patch)
tree2815c402d2efbdff1a5de861272eba469efcf85d
parentf87f756b17a7a23e31938abbfc78f1a8d09d0df6 (diff)
downloademacs-ed96ace9289c2e04db3e8fc63321fde248c3f3f8.tar.gz
emacs-ed96ace9289c2e04db3e8fc63321fde248c3f3f8.zip
pop3.el (pop3-number-of-responses): Search for "+OK", not "+OK ".
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/gnus/pop3.el3
2 files changed, 7 insertions, 1 deletions
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 @@
12010-09-06 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * pop3.el: Require cl when compiling.
4 (pop3-number-of-responses): Search for "+OK", not "+OK ".
5
12010-09-05 Lars Magne Ingebrigtsen <larsi@gnus.org> 62010-09-05 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 7
3 * gnus-start.el (gnus-get-unread-articles): Don't bother with groups 8 * 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 @@
33 33
34;;; Code: 34;;; Code:
35 35
36(eval-when-compile (require 'cl))
36(require 'mail-utils) 37(require 'mail-utils)
37(defvar parse-time-months) 38(defvar parse-time-months)
38 39
@@ -204,7 +205,7 @@ Use streaming commands."
204 (let ((responses 0)) 205 (let ((responses 0))
205 (save-excursion 206 (save-excursion
206 (goto-char (point-min)) 207 (goto-char (point-min))
207 (while (or (and (re-search-forward "^\\+OK " nil t) 208 (while (or (and (re-search-forward "^\\+OK" nil t)
208 (or (not endp) 209 (or (not endp)
209 (re-search-forward "^\\.\r?\n" nil t))) 210 (re-search-forward "^\\.\r?\n" nil t)))
210 (re-search-forward "^-ERR " nil t)) 211 (re-search-forward "^-ERR " nil t))