Trouble opening gmail nnimap server in Emacs gnus on Windows

后端 未结 2 806
灰色年华
灰色年华 2021-01-15 05:11

I\'m trying to use Emacs gnus to connect to my gmail account. This is the relevant configuration code, taken mostly from here:

(setq tls-program \'(\"openssl         


        
相关标签:
2条回答
  • 2021-01-15 06:00

    One thing I needed to do on Windows 7 to connect to gmail from gnus was:

    ;; So gnutls can find trustfiles on windows
    (eval-after-load "gnutls"
    '(progn
      (setq gnutls-trustfiles '("c:/cygwin/usr/ssl/certs/ca-bundle.trust.crt" "c:/cygwin/usr/ssl/certs/ca-bundle.crt"))))
    

    Other than that, rest of setup is similar:

    (setq gnus-secondary-select-methods
          '(
        (nnimap "gmail"
               (nnimap-address "imap.gmail.com")
               (nnimap-server-port 993)
               (nnimap-stream ssl)
               (nnir-search-engine imap)
               (nnimap-authinfo-file "~/.authinfo")
               )
        (nntp "news.gmane.org")
        (nnfolder "archive"
          (nnfolder-directory   "~/Documents/Text/Gnus/Mail/archive")
          (nnfolder-active-file "~/Documents/Text/Gnus/Mail/archive/active")
          (nnfolder-get-new-mail nil)
          (nnfolder-inhibit-expiry t))))
    

    Able to read mail fine from gmail.

    0 讨论(0)
  • 2021-01-15 06:05

    What worked for me is using a gnutls port for windows instead of openssl, and removing any customization of tls-program. Emacs will use the binaries from gnutls automatically if they are on your path since gnutls-cli is the first program to try in the default values of tls-program.

    I suggest using gnutls before trying openssl, it probably comes first in the defaults for a reason.

    0 讨论(0)
提交回复
热议问题