From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/58192 Path: main.gmane.org!not-for-mail From: "Ted Zlatanov" Newsgroups: gmane.emacs.gnus.general Subject: authinfo encryption through netrc.el works now (was: authinfo/netrc file encryption status -- GnuPG) Date: 4 Aug 2004 12:54:05 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Sender: ding-owner@lists.math.uh.edu Message-ID: <4nacxaaloy.fsf_-_@lifelogs.com> References: <4nwu0u8zht.fsf@lifelogs.com> <4noem1tmmp.fsf@lifelogs.com> <4nk6wlzbc2.fsf@koz.bwh.harvard.edu> <4n4qnl8mnw.fsf@lifelogs.com> <4noelsxi20.fsf@lifelogs.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1091639865 12310 80.91.224.253 (4 Aug 2004 17:17:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 Aug 2004 17:17:45 +0000 (UTC) Original-X-From: ding-owner+M6733@lists.math.uh.edu Wed Aug 04 19:17:34 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BsPOQ-0005f2-00 for ; Wed, 04 Aug 2004 19:17:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1BsPM3-0001lh-00; Wed, 04 Aug 2004 12:15:07 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1BsPLz-0001lc-00 for ding@lists.math.uh.edu; Wed, 04 Aug 2004 12:15:03 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1BsPLx-0008UW-Sa for ding@lists.math.uh.edu; Wed, 04 Aug 2004 12:15:01 -0500 Original-Received: from mail.bwh.harvard.edu (sysblade0.bwh.harvard.edu [134.174.9.44]) by justine.libertine.org (Postfix) with ESMTP id 8ADE43A0045 for ; Wed, 4 Aug 2004 12:15:01 -0500 (CDT) Original-Received: (qmail 25124 invoked from network); 4 Aug 2004 17:07:17 -0000 Envelope-Sender: tzz@lifelogs.com Envelope-Recipients: ding@gnus.org, Original-Received: from asimov.bwh.harvard.edu (HELO asimov) ([134.174.9.63]) (envelope-sender ) by mail.bwh.harvard.edu (qmail-ldap-1.03) with SMTP for ; 4 Aug 2004 17:07:17 -0000 Mail-Followup-To: "Ding Mailing List" Original-To: "Ding Mailing List" X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" In-Reply-To: (Steven E. Harris's message of "Tue, 03 Aug 2004 14:47:23 -0700") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:58192 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:58192 On Tue, 03 Aug 2004, seh@panix.com wrote: > "Ted Zlatanov" writes: > >> I tested them, let me know if you get good results too. > > It almost works as expected, but for one annoyance. I have four > servers listed in my .authinfo file. When I start Gnus, I get asked > for the decryption password six or seven times as various connections > get opened, despite having gnus-encrypt-password-cache-expiry set to > 120. Shouldn't I only be asked for my decryption password once? Surely > something must be wrong, for it would be easier to type four different > passwords than to type a single on seven times. I was doing the caching wrong, it's fixed. All the code is in CVS now, including the netrc.el changes (they won't do anything if you don't have gnus-encrypt-file-alist set). I also made gnus-encrypt-password-cache-expiry be a trigger for password-cache-expiry, meaning that setting the former automatically sets the latter. If this is incorrect, please let me know. > Related questions: > o Does Gnus really reparse ~/.authinfo every time a connection gets > opened? I don't know. Based on your experience, probably yes. > o Could Gnus cache the decrypted ~/.authinfo data to avoid running gpg so many > times? Sure, but is that worth the trouble? It's a small amount of data and the file could change, so you need to not only cache but also remember the last mtime of the file you're caching. Thanks Ted