info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gnus and pgp


From: Ted Zlatanov
Subject: Re: Gnus and pgp
Date: Tue, 05 Jan 2010 13:28:34 -0600
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.90 (gnu/linux)

On Tue, 22 Dec 2009 19:08:21 +0100 Richard Riley <rileyrgdev@gmail.com> wrote: 

RR> ,----
RR> | (require 'epa-file)
RR> | (epa-file-enable)
RR> | (setq epa-file-cache-passphrase-for-symmetric-encryption t) ;;VERY 
Important
RR> | (if (file-exists-p "~/.authinfo.gpg")
RR> |     (setq auth-sources '((:source "~/.authinfo.gpg" :host t :protocol t)))
RR> |     (setq auth-sources '((:source "~/.authinfo" :host t :protocol t))))
RR> | (setq 
RR> |       mml2015-encrypt-to-self t
RR> |       mml2015-cache-passphrase t
RR> |       mml2015-passphrase-cache-expiry 60000
RR> |       mml2015-verbose t)
RR> | 
RR> | 
RR> | 
RR> | (setq       gnus-select-method '(nnimap "mymail"
RR> |                              (nnimap-stream tls)
RR> |                              (nnimap-address "richardriley.net")
RR> |                              (nnimap-expunge-on-close always)
RR> | ;;                                   (nnimap-authinfo-file 
"~/.authinfo.gpg")
RR> |                              (nnimap-nov-is-evil nil)
RR> |                              (nnir-search-engine imap)))
RR> | 
RR> | (add-to-list 'gnus-secondary-select-methods
RR> |               '(nntp "motzarella"
RR> |                        (nntp-address "news.eternal-september.org")
RR> |                  (nntp-port-number 119)
RR> | ;;                       (nntp-authinfo-file "~/.authinfo.gpg")
RR> |                  )
RR> |         )
RR> `----

RR> With the authinfo lines commented out as above I get prompted for user
RR> id and password for the imap server.

Let's debug it.  Run the following in a clean (emacs -q) instance:

(require 'epa-file)
(require 'auth-source)
(require 'cl)
(epa-file-enable)
(setq auth-source-debug t ; use `message' to log messages
      epa-file-cache-passphrase-for-symmetric-encryption t
      auth-sources '((:source "~/.authinfo.gpg" :host t :protocol t)))
(auth-source-user-or-password "login" "richardriley.net" "imap")

What does the last call return (should be your login name)?  What's in
*Messages*?

Thanks
Ted


reply via email to

[Prev in Thread] Current Thread [Next in Thread]