From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/86291 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: auth-source backend stuff Date: Tue, 17 Nov 2015 13:06:47 +0800 Message-ID: <87d1v9kye0.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1447736916 8232 80.91.229.3 (17 Nov 2015 05:08:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Nov 2015 05:08:36 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M34523@lists.math.uh.edu Tue Nov 17 06:08:22 2015 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZyYV8-0003b6-PI for ding-account@gmane.org; Tue, 17 Nov 2015 06:08:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.85) (envelope-from ) id 1ZyYU8-0004NA-Il; Mon, 16 Nov 2015 23:07:16 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1ZyYU6-0004Mm-FJ for ding@lists.math.uh.edu; Mon, 16 Nov 2015 23:07:14 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.85) (envelope-from ) id 1ZyYU5-0002d5-0T for ding@lists.math.uh.edu; Mon, 16 Nov 2015 23:07:14 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1ZyYU3-0002RX-1K for ding@gnus.org; Tue, 17 Nov 2015 06:07:11 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZyYTw-0001VF-5y for ding@gnus.org; Tue, 17 Nov 2015 06:07:05 +0100 Original-Received: from 221.216.167.8 ([221.216.167.8]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 Nov 2015 06:07:04 +0100 Original-Received: from eric by 221.216.167.8 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 Nov 2015 06:07:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 18 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 221.216.167.8 User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:uGsc1te2fdm/4Yqy5bOny1AbqvU= X-Spam-Score: -0.2 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:86291 Archived-At: I see that auth-source.el is written to provide backend subclassing, but I've found the system as a whole a bit confusing to grasp. I've got a couple of questions I'm hoping someone can provide pointers for. 1. I keep my email passwords in the unix "pass" utility, which I'm very pleased with. I've been able to get pretty much all my other programs (msmtp, mbsync) to draw passwords from that, with the exception of Gnus. Has anyone tackled a "pass"-specific auth backend? 2. Failing that, how hard would it be to make the ~/.authinfo system smarter about PGP encryption? I have a ~/.authinfo.gpg file, but no ~/.authinfo. If I add a new backend, I'm first prompted to add the login details to ~/.authinfo, after which I have to manually copy them into the encrypted version of the file, then delete the unencrypted version. Could Gnus check for the presence of an ~/.authinfo.gpg file, and handle that gracefully? Thanks, Eric