Revert last change, since auth-source now accepts numbers.
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 21 Feb 2011 23:58:56 +0000 (15:58 -0800)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 21 Feb 2011 23:58:56 +0000 (15:58 -0800)
lisp/ChangeLog
lisp/nnimap.el

index ef81f60..bec462c 100644 (file)
@@ -1,5 +1,8 @@
 2011-02-21  Lars Ingebrigtsen  <larsi@gnus.org>
 
+       * nnimap.el (nnimap-open-connection-1): Revert last change, since
+       auth-source now accepts numbers.
+
        * auth-source.el (auth-source-netrc-parse): Accept a number as the port
        spec, too.
        (auth-source-ensure-strings): New function.
index af25dfb..138875b 100644 (file)
@@ -351,7 +351,7 @@ textual parts.")
           (proto-stream-always-use-starttls t)
            login-result credentials)
       (when nnimap-server-port
-       (setq ports (append ports (list (format "%s" nnimap-server-port)))))
+       (setq ports (append ports (list nnimap-server-port))))
       (destructuring-bind (stream greeting capabilities stream-type)
          (open-protocol-stream
           "*nnimap*" (current-buffer) nnimap-address (car (last ports))