* pop3.el (pop3-open-server): Error messages are "-ERR".
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Mon, 2 May 2011 00:58:13 +0000 (02:58 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Mon, 2 May 2011 00:58:13 +0000 (02:58 +0200)
lisp/ChangeLog
lisp/pop3.el

index 17a2f4e..aae2d14 100644 (file)
@@ -1,3 +1,7 @@
+2011-05-02  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * pop3.el (pop3-open-server): Error messages are "-ERR".
+
 2011-05-01  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * pop3.el (pop3-open-server): Upgrade opportunistically to STARTTLS.
index 3ca5cab..96b2ae1 100644 (file)
@@ -306,7 +306,7 @@ Returns the process associated with the connection."
                    (t
                     (or pop3-stream-type 'network)))
             :capability-command "CAPA\r\n"
-            :end-of-command "^\\.\r?\n\\|^\\+[A-Z]+ .*\n"
+            :end-of-command "^\\.\r?\n\\|^\\(-ERR\\|+OK \\).*\n"
             :success "^\\+OK.*\n"
             :return-list t
             :starttls-function