Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: info-gnus-english@gnu.org
Subject: Re: Gnus and pgp
Date: Tue, 05 Jan 2010 13:28:34 -0600	[thread overview]
Message-ID: <87wrzwe4gt.fsf@lifelogs.com> (raw)
In-Reply-To: <mailman.2.1261505407.18930.info-gnus-english@gnu.org>

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

  parent reply	other threads:[~2010-01-05 19:28 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.11779.1259519753.2239.info-gnus-english@gnu.org>
2009-12-01 20:28 ` Ted Zlatanov
2009-12-02 19:08   ` Richard Riley
2009-12-02 19:20   ` Richard Riley
     [not found]   ` <mailman.12043.1259780939.2239.info-gnus-english@gnu.org>
2009-12-02 21:41     ` Ted Zlatanov
2009-12-03  0:54       ` Richard Riley
     [not found]       ` <mailman.12065.1259801678.2239.info-gnus-english@gnu.org>
2009-12-03 18:02         ` Ted Zlatanov
2009-12-03 19:11           ` Richard Riley
2009-12-07 18:54       ` Richard Riley
2009-12-22 18:08       ` Richard Riley
     [not found]       ` <mailman.2.1261505407.18930.info-gnus-english@gnu.org>
2010-01-05 19:28         ` Ted Zlatanov [this message]
2010-01-06  0:42           ` Richard Riley
     [not found]           ` <mailman.814.1263114758.18930.info-gnus-english@gnu.org>
2010-01-13 21:41             ` Ted Zlatanov
2010-01-14  0:19               ` Richard Riley
     [not found]               ` <mailman.1372.1263428412.18930.info-gnus-english@gnu.org>
2010-01-14 14:22                 ` Ted Zlatanov
2010-01-14 15:36                   ` Richard Riley
     [not found]                   ` <mailman.1413.1263483604.18930.info-gnus-english@gnu.org>
2010-01-15 18:37                     ` Ted Zlatanov
2009-11-29 18:35 Richard Riley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wrzwe4gt.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).