Setup:
GUI version GNU Emacs 25.0.50.1 (x86_64-w64-mingw32) of 2015-10-05
Gnus, using the latest version of Emacs development branch 25.05
Windows 7 x64 bit.
Situation:
Summary: I had quite serious headaches with trying Gnus to getting working. I haven't found a solution for the problem yet. Any assistance/ideas/guesses will be appreciated. I have followed this manual to set up Gnus with Gmail: http://www.emacswiki.org/emacs/GnusGmail
What follows are my experiments and results.
When connecting I get the following messages in the minibuffer:
Opening connection to imap.gmail.com via tls...
Unable to open server nnimap+gmail due to: Unknown service: 993
nnimap (gmail) open error: ‘’. Continue? (y or n) n
Couldn’t open server on gmail
Warning: Unable to open server nnimap+gmail due to: Unknown service: 993
And when continue
Opening connection to imap.gmail.com via tls...
Unable to open server nnimap+gmail due to: Unknown service: 993
nnimap (gmail) open error: ‘’. Continue? (y or n) y
Reading c:/Users/ReneFroger/AppData/Roaming/.newsrc.eld...
Generating the cache active file...done
Opening nnimap server on gmail...
Server nnimap+gmail previously determined to be down; not retrying
Opening nnimap server on gmail...failed:
Checking new news...
gnus-setup-news: Wrong type argument: listp, nnimap
Connecting to the same IMAP server with Opera on the same computer succeeds (so there should be no firewall issues).
The nnimap server is defined as a secondary select method:
(setq gnus-secondary-select-methods '(nnimap "gmail"
(nnimap-address "imap.gmail.com") ; it could also be imap.googlemail.com if that's your server.
(nnimap-server-port "imaps")
(nnimap-stream ssl)))
I found this thread which looked more promising:
http://thread.gmane.org/gmane.emacs.gnus.user/14695
From that thread it looked like the cause of the error message, might be a SSL certificate issue. So I found the certificates SSL in the cygwin. So I pointed it to there with:
(eval-after-load "gnutls"
'(progn
(setq gnutls-trustfiles '("c:/Dropbox/Sys/cygwin/usr/ssl/certs/ca-bundle.trust.crt" "c:/Dropbox/Sys/cygwin/usr/ssl/certs/ca-bundle.crt"))))
I then tried to start gnus, but I got the same issue. I also read this stackoverflow topic which is not helping me, unfortunately.
I have tried the log levels 1 and 2 by evaluating
(setq gnutls-log-level 1)
and then tried M-x gnus, and when that didn't give anything meaningful,
I evaluated
(setq gnutls-log-level 2)
and then tried M-x gnus, and that didn't give anything meaningful.
This is my full configuration for Gnus, following the manual for setting up with Gmail (http://www.emacswiki.org/emacs/GnusGmail) and trying to solve this issue with Windows
(setq tls-program '("C:/Dropbox/Sys/cygwin_2/bin/openssl.exe s_client -connect %h:%p -no_ssl2 -ign_eof"))
(setq gnus-select-method
'(nnimap "gmail"
(nnimap-address "imap.gmail.com") ; it could also be imap.googlemail.com if that's your server.
(nnimap-server-port "imaps")
(nnimap-stream ssl)))
(setq smtpmail-smtp-service 587
gnus-ignored-newsgroups "^to\\.\\|^[0-9. ]+\\( \\|$\\)\\|^[\"]\"[#'()]")
(eval-after-load "gnutls"
'(progn
(setq gnutls-trustfiles '("c:/Dropbox/Sys/cygwin/usr/ssl/certs/ca-bundle.trust.crt" "c:/Dropbox/Sys/cygwin/usr/ssl/certs/ca-bundle.crt"))))
(setq gnus-secondary-select-methods '(nnimap "gmail"
(nnimap-address "imap.gmail.com") ; it could also be imap.googlemail.com if that's your server.
(nnimap-server-port "imaps")
(nnimap-stream ssl)))
(setq smtpmail-smtp-service 587
gnus-ignored-newsgroups "^to\\.\\|^[0-9. ]+\\( \\|$\\)\\|^[\"]\"[#'()]")
Note that .profile
and .authinfo
are already in my home folder, which is also in my path. Any suggestion to debug this further would be appreciated.
(gnutls-available-p)
, do you gett
ornil
?t
after evaluating(gnutls-available-p)
.