2015-05-07 223 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正在查找其庫的目錄中。