使用 gmail imap 配置 gnus

Configuring gnus with gmail imap

我正在尝试配置 gnus 以使用我的 gmail 帐户。我的 .gnus 文件如下所示:

(setq gnus-select-method '(nntp "news.gwene.org"))

(setq user-full-name "George P. Burdell")
(setq user-mail-address "probablyReal@gmail.com")

(setq smtpmail-auth-credentials "~/.authinfo.epg")
(add-to-list 'gnus-secondary-select-methods
        '(nnimap "gmail"
           (nnimap-address "imap.gmail.com")
           (nnimap-server-port 993)
           (nnimap-stream ssl)
           (nnimap-authinfo-file "~/.authinfo.epg")
           )
        )
(setq smtpmail-stream-type 'ssl
       smtpmail-smtp-server "smtp.gmail.com"
       smtpmail-smtp-service 465)

我的 .authinfo.epg 文件如下所示:

machine imap.gmail.com login probablyReal@gmail.com password secret port 993
machine smtp.gmail.com login probablyReal@gmail.com password secret port 465

它抛出的错误是:

Generating the cache active file...done
Opening nnfolder server on archive...done
Opening nnimap server on gmail...
Opening connection to imap.gmail.com via tls...
Opening TLS connection to `imap.gmail.com'...
Opening TLS connection with `gnutls-cli --insecure -p 993 imap.gmail.com'...failed
Opening TLS connection with `gnutls-cli --insecure -p 993 imap.gmail.com --protocols ssl3'...failed
Opening TLS connection with `openssl s_client -connect imap.gmail.com:993 -no_ssl2 -ign_eof'...failed
Opening TLS connection to `imap.gmail.com'...failed
Unable to open server nnimap+gmail due to: Buffer  *nnimap imap.gmail.com 993  *nntpd** has no process
Opening nnimap server on gmail...failed: 
No new newsgroups
Checking new news...
Reading active file from gmail via nnimap...
Opening nnimap server on gmail...
Server nnimap+gmail previously determined to be down; not retrying
Opening nnimap server on gmail...failed: 
Reading active file via nndraft...done
Checking new news...done
Warning: Opening nnimap server on gmail...failed: ; Server nnimap+gmail previously determined to be down; not retrying; Opening nnimap server on gmail...failed: ; Unable to open server nnimap+gmail due to: Buffer  *nnimap imap.gmail.com 993  *nntpd** has no process

(对不起文字墙)

最后,当我评价这个时:

(gnutls-available-p)

它只是打印:

nil

我 运行 emacs for windows 8,我 使用 cygwin,我真的想不通是什么问题是,即使在搜索了几个小时之后。

编辑:我已经尝试了这两个(以及两者的组合)并得到了相同的错误:

http://blog.binchen.org/posts/notes-on-using-gnus.html

http://www.emacswiki.org/emacs/GnusGmail

我的猜测是 Windows 上的 Emacs 没有附带所需的库,因此 (gnutls-available-p) returns 对你来说是零。你必须在某个地方安装 gnutls,这样你的 Emacs 才能找到它,cf。 GnuTLS homepage。您可能必须将下载的 Windows 库放入 Emacs 正在寻找它的库的目录中。