2015-05-07 129 views
2

我正在尝试配置gnus以使用我的gmail帐户。我.gnus文件看起来像这样:使用gmail imap配置gnus

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

(setq user-full-name "George P. Burdell") 
(setq user-mail-address "[email protected]") 

(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 [email protected] password secret port 993 
machine smtp.gmail.com login [email protected] 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的Windows 8,我不使用 cygwin下,我实在想不通是什么问题,甚至seraching后用了几个小时。

编辑:我已经试过这两个(以及来自组合),并得到了同样的错误:

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

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

+0

您是否已将您的配置与wiki gmail安装进行了比较,以确定您是否正在执行已知的正常工作? http://www.emacswiki.org/emacs/GnusGmail也许你正在做一些不同的事情? – lawlist

+1

@lawlist我已经看过这个配置,以及这里的配置:http://blog.binchen.org/posts/notes-on-using-gnus.html 这两个选项(以及两者的组合)同样的问题。 – boxInHand

+0

你现在做了吗? –

回答

1

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