(nnimap-open-connection): Check for "OK" from the greeting.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sat, 27 Nov 2010 14:43:06 +0000 (15:43 +0100)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sat, 27 Nov 2010 14:43:06 +0000 (15:43 +0100)
lisp/ChangeLog
lisp/nnimap.el

index f05a92f..e3ddf75 100644 (file)
@@ -1,3 +1,7 @@
+2010-11-27  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * nnimap.el (nnimap-open-connection): Check for "OK" from the greeting.
+
 2010-11-27  Andrew Cohen  <cohen@andy.bu.edu>
 
        * nnir.el: Fix typos.
index 0041fe4..97a0fb4 100644 (file)
@@ -344,7 +344,7 @@ textual parts.")
            (nnheader-report 'nnimap "Unable to contact %s:%s via %s"
                             nnimap-address port nnimap-stream)
          (gnus-set-process-query-on-exit-flag stream nil)
-         (if (not (string-match "[*.] \\([A-Z0-9]+\\)" greeting))
+         (if (not (string-match "[*.] OK" greeting))
              (nnheader-report 'nnimap "%s" greeting)
            ;; Store the greeting (for debugging purposes).
            (setf (nnimap-greeting nnimap-object) greeting)