* nnimap.el (nnimap-open-connection-1): Always upgrade to STARTTLS (for
backwards compatibility).
+ (nnimap-open-connection-1): Really respect nnimap-server-port.
* proto-stream.el (proto-stream-open-network): When doing opportunistic
TLS upgrades we don't really care about the identity of the peer.
(proto-stream-always-use-starttls t)
connection-result login-result credentials)
(when nnimap-server-port
- (push (format "%s" nnimap-server-port) ports))
+ (setq ports (append ports (list (format "%s" nnimap-server-port)))))
(destructuring-bind (stream greeting capabilities)
(open-protocol-stream
"*nnimap*" (current-buffer) nnimap-address (car (last ports))