From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/13399 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.gnus.user Subject: Re: Gnus and pgp Date: Mon, 07 Dec 2009 19:54:02 +0100 Organization: aich tea tea pea dicky riley dot net Message-ID: References: <87iqcqmoat.fsf@lifelogs.com> <87iqcphx4q.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1260214677 9935 80.91.229.12 (7 Dec 2009 19:37:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Dec 2009 19:37:57 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Mon Dec 07 20:37:51 2009 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NHjP0-0001rM-Vb for gegu-info-gnus-english@m.gmane.org; Mon, 07 Dec 2009 20:37:47 +0100 Original-Received: from localhost ([127.0.0.1]:58539 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHjP0-0005Jg-MA for gegu-info-gnus-english@m.gmane.org; Mon, 07 Dec 2009 14:37:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHijD-0006GM-4a for info-gnus-english@gnu.org; Mon, 07 Dec 2009 13:54:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHij8-0006Cu-8u for info-gnus-english@gnu.org; Mon, 07 Dec 2009 13:54:34 -0500 Original-Received: from [199.232.76.173] (port=35405 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHij7-0006CX-SJ for info-gnus-english@gnu.org; Mon, 07 Dec 2009 13:54:30 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:59982) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NHij7-0006C4-Cn for info-gnus-english@gnu.org; Mon, 07 Dec 2009 13:54:29 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NHij1-0006i0-7l for info-gnus-english@gnu.org; Mon, 07 Dec 2009 19:54:23 +0100 Original-Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Dec 2009 19:54:23 +0100 Original-Received: from rileyrgdev by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Dec 2009 19:54:23 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 53 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 85.183.18.158 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:13399 Archived-At: Ted Zlatanov writes: > On Wed, 02 Dec 2009 20:08:11 +0100 Richard Riley wrote: > > RR> I wasn't aware you could do that! Works reliably now indicating an issue > RR> with emacs talking to the agent. > > Since EPA is part of Emacs proper, you should file a bug. I know it's > not easy to repeat the bug but it certainly seems annoying. > > On Wed, 02 Dec 2009 20:20:44 +0100 Richard Riley wrote: > > RR> Works fine now with your suggestion. But now I am confused as to how to > RR> correctly set this up. Do I still need to to set (nntp-authinfo-file > RR> "~/.authinfo.gpg") for each secondary select method call? And if so, > RR> where doe the epa set up come in? If you could explain how it fits > RR> together that would be great. > > I set the authinfo file globally, with just auth-sources. I don't set > it per select method. You can, but the effect will be different and I > don't know for sure it will work correctly. > > When you load EPG/EPA (I forget the exact package demarkation) a handler > is set up for .gpg files *by default* (you can change that). When you > open or save such a file, it's automatically decoded or encoded by the > EPG/EPA handlers. All of this is outside Gnus. So specifying a .gpg > file for auth-sources is no different than a regular file. > > Ted btw, just looked again (setq gnus-select-method '(nnimap "mymail" (nnimap-stream tls) (nnimap-address "myserver.net") (nnimap-expunge-on-close always) (nnimap-authinfo-file "~/.authinfo.gpg") (nnimap-nov-is-evil nil) (nnir-search-engine imap))) if I remove the nnimap-authinfo line it most definitely does not default to auth-sources. it prompts me for a user and a password. my authsources set up is (require 'auth-source) (require 'epa-file) (setq epa-file-cache-passphrase-for-symmetric-encryption t) ;;VERY Important (if (file-exists-p "~/.authinfo.gpg") (setq auth-sources '((:source "~/.authinfo.gpg" :host t :protocol t))) (setq auth-sources '((:source "~/.authinfo" :host t :protocol t)))) emacs 23 (with accompanying gnus).