Search the netrc entries for the logical server name, then the actual.
authorTed Zlatanov <tzz@lifelogs.com>
Tue, 29 Oct 2013 13:19:11 +0000 (09:19 -0400)
committerTed Zlatanov <tzz@lifelogs.com>
Tue, 29 Oct 2013 13:19:11 +0000 (09:19 -0400)
* nnimap.el (nnimap-open-connection-1): `auth-source-search' for the
`nnoo-current-server' first, then for the actual `nnimap-address' to
allow netrc entries for the nnoo server to coexist with netrc entries
for the `nnimap-address'.

lisp/ChangeLog
lisp/nnimap.el

index cf1d4ff..87ff855 100644 (file)
@@ -1,3 +1,10 @@
+2013-10-29  Teodor Zlatanov  <tzz@lifelogs.com>
+
+       * nnimap.el (nnimap-open-connection-1): `auth-source-search' for the
+       `nnoo-current-server' first, then for the actual `nnimap-address' to
+       allow netrc entries for the nnoo server to coexist with netrc entries
+       for the `nnimap-address'.
+
 2013-10-23  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * mm-decode.el (mm-dissect-buffer): Revert last change.
index f8c2b24..2220c81 100644 (file)
@@ -456,8 +456,8 @@ textual parts.")
                                (nnimap-credentials
                                (gnus-delete-duplicates
                                 (list
-                                 nnimap-address
-                                 (nnoo-current-server 'nnimap)))
+                                  (nnoo-current-server 'nnimap)
+                                 nnimap-address))
                                 ports
                                 nnimap-user))))
                  (setq nnimap-object nil)