I\'m trying to use Emacs gnus to connect to my gmail account. This is the relevant configuration code, taken mostly from here:
(setq tls-program \'(\"openssl
One thing I needed to do on Windows 7 to connect to gmail from gnus was:
;; So gnutls can find trustfiles on windows
(eval-after-load "gnutls"
'(progn
(setq gnutls-trustfiles '("c:/cygwin/usr/ssl/certs/ca-bundle.trust.crt" "c:/cygwin/usr/ssl/certs/ca-bundle.crt"))))
Other than that, rest of setup is similar:
(setq gnus-secondary-select-methods
'(
(nnimap "gmail"
(nnimap-address "imap.gmail.com")
(nnimap-server-port 993)
(nnimap-stream ssl)
(nnir-search-engine imap)
(nnimap-authinfo-file "~/.authinfo")
)
(nntp "news.gmane.org")
(nnfolder "archive"
(nnfolder-directory "~/Documents/Text/Gnus/Mail/archive")
(nnfolder-active-file "~/Documents/Text/Gnus/Mail/archive/active")
(nnfolder-get-new-mail nil)
(nnfolder-inhibit-expiry t))))
Able to read mail fine from gmail.
What worked for me is using a gnutls port for windows instead of openssl, and removing any customization of tls-program
. Emacs will use the binaries from gnutls automatically if they are on your path since gnutls-cli
is the first program to try in the default values of tls-program
.
I suggest using gnutls before trying openssl, it probably comes first in the defaults for a reason.