When looking for credentials, also use the nnimap-server-port.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 19 Sep 2010 17:35:17 +0000 (19:35 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 19 Sep 2010 17:35:17 +0000 (19:35 +0200)
lisp/ChangeLog
lisp/nnimap.el

index e790eaa..c694baa 100644 (file)
@@ -2,6 +2,8 @@
 
        * nnimap.el (nnimap-find-wanted-parts-1): New function.
        (nnimap-fetch-partial-articles): New variable.
 
        * nnimap.el (nnimap-find-wanted-parts-1): New function.
        (nnimap-fetch-partial-articles): New variable.
+       (nnimap-open-connection): When looking for credentials, also use the
+       nnimap-server-port.
 
        * gnus.el (gnus-similar-server-opened): Refactor a bit and add
        comments.
 
        * gnus.el (gnus-similar-server-opened): Refactor a bit and add
        comments.
index 8324d99..dbc16a2 100644 (file)
@@ -268,7 +268,11 @@ textual parts.")
                           (if (eq nnimap-authenticator 'anonymous)
                               (list "anonymous"
                                     (message-make-address))
                           (if (eq nnimap-authenticator 'anonymous)
                               (list "anonymous"
                                     (message-make-address))
-                            (nnimap-credentials nnimap-address ports))))
+                            (nnimap-credentials
+                             nnimap-address
+                             (if nnimap-server-port
+                                 (cons (format "%s" nnimap-server-port) ports)
+                               ports)))))
                (setq nnimap-object nil)
              (setq login-result (nnimap-command "LOGIN %S %S"
                                                 (car credentials)
                (setq nnimap-object nil)
              (setq login-result (nnimap-command "LOGIN %S %S"
                                                 (car credentials)