2011-09-21 Lars Magne Ingebrigtsen <larsi@gnus.org>
+ * nnimap.el (nnimap-map-port): New function to connect to 993 instead
+ of "imaps" to word around Windows problems.
+ (nnimap-open-connection-1): Use it.
+
* message.el (message-indent-citation): Revert last change which made
`F' not work.
nil
stream)))
+(defun nnimap-map-port (port)
+ (if (equal port "imaps")
+ "993"
+ port))
+
(defun nnimap-open-connection-1 (buffer)
(unless nnimap-keepalive-timer
(setq nnimap-keepalive-timer (run-at-time (* 60 15) (* 60 15)
(push nnimap-server-port ports))
(let* ((stream-list
(open-protocol-stream
- "*nnimap*" (current-buffer) nnimap-address (car ports)
+ "*nnimap*" (current-buffer) nnimap-address
+ (nnimap-map-port (car ports))
:type nnimap-stream
:return-list t
:shell-command nnimap-shell-program