Mercurial > emacs
diff lisp/gnus/nnimap.el @ 110790:1f25b03df4ad
Merge changes made in Gnus trunk.
shr.el: Rearrange function order to be more logical.
gnus-faq.texi: Remove reference to my.gnus.org
message.el (message-change-subject): Remove 404 URL in a comment.
nnir.el: Fix Swish-E URL.
nnir.el: Fix Namazu URL.
nnrss.el (nnrss-check-group): Remove 404 URL in comment.
nnrss.el (nnrss-discover-feed): Remove 404 URL in docstring.
gnus-faq.texi (FAQ 5-5): Fix Flyspell URL.
gnus-faq.texi (FAQ 7-1): Fix getmail URL.
gnus.texi (Comparing Mail Back Ends): Remove broken link and allusion to ReiserFS.
nnimap.el (nnimap-open-connection): Prepare to support open-gnutls-stream.
shr.el (shr-insert): Get 'space transition right.
message.texi: Remove reference to gpg-2comp.
author | Katsumi Yamaoka <yamaoka@jpl.org> |
---|---|
date | Wed, 06 Oct 2010 12:38:45 +0000 |
parents | 895607aec71e |
children | 30fed27e97bc |
line wrap: on
line diff
--- a/lisp/gnus/nnimap.el Wed Oct 06 14:03:29 2010 +0200 +++ b/lisp/gnus/nnimap.el Wed Oct 06 12:38:45 2010 +0000 @@ -317,13 +317,16 @@ 'starttls)) '("imap")) ((memq nnimap-stream '(ssl tls)) - (open-tls-stream - "*nnimap*" (current-buffer) nnimap-address - (setq port - (or nnimap-server-port - (if (netrc-find-service-number "imaps") - "imaps" - "993")))) + (funcall (if (and nil + (fboundp 'open-gnutls-stream)) + 'open-gnutls-stream + 'open-tls-stream) + "*nnimap*" (current-buffer) nnimap-address + (setq port + (or nnimap-server-port + (if (netrc-find-service-number "imaps") + "imaps" + "993")))) '("143" "993" "imap" "imaps")) (t (error "Unknown stream type: %s" nnimap-stream))))