使用gmail imap配置gnus

时间:2015-05-07 06:15:14

标签: emacs openssl imap gnus

我正在尝试配置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

1 个答案:

答案 0 :(得分:1)

我的猜测是Windows上的Emacs没有附带所需的库,因此(gnutls-available-p)会为您返回nil。您必须在某处安装gnutls,以便您的Emacs能够找到它,参见GnuTLS homepage。您可能必须将下载的Windows库放入Emacs正在寻找它的库的目录中。