From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/17146 Path: news.gmane.org!not-for-mail From: Brady Trainor Newsgroups: gmane.emacs.gnus.user Subject: Re: Prevent "save to ~/.authinfo[Y/y/N/n]" prompt Date: Mon, 29 Sep 2014 19:25:32 -0700 Message-ID: <87vbo5rgir.fsf@uw.edu> References: <87r3yumac3.fsf@uw.edu> <87egutzzwh.fsf@skimble.plus.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1412043967 16451 80.91.229.3 (30 Sep 2014 02:26:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Sep 2014 02:26:07 +0000 (UTC) Cc: info-gnus-english@gnu.org To: Sharon Kimble Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Tue Sep 30 04:26:01 2014 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XYn8b-0007gE-KN for gegu-info-gnus-english@m.gmane.org; Tue, 30 Sep 2014 04:26:01 +0200 Original-Received: from localhost ([::1]:40218 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYn8a-00045g-P3 for gegu-info-gnus-english@m.gmane.org; Mon, 29 Sep 2014 22:26:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYn8V-00045Z-0o for info-gnus-english@gnu.org; Mon, 29 Sep 2014 22:25:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYn8Q-0006tI-3m for info-gnus-english@gnu.org; Mon, 29 Sep 2014 22:25:54 -0400 Original-Received: from mail-pd0-f178.google.com ([209.85.192.178]:38509) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYn8P-0006t2-Sg for info-gnus-english@gnu.org; Mon, 29 Sep 2014 22:25:50 -0400 Original-Received: by mail-pd0-f178.google.com with SMTP id y10so3676393pdj.37 for ; Mon, 29 Sep 2014 19:25:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=hQU2wOY6t/7IwdJSsCuR4isjzdVHHtTkXFCvW0lIAj0=; b=JrINOZhoFAn1n6KgK8pf7sjXcSNq6dUSiwVgtAfOEEx/ZNe0rf+WKesRe38I0bHGpV pnRhiBg5+7diABAfv1r8vvZnm1JegLRnCf7H6UObQA6Qcz99Sn0H2bswF7KLGM8eHMo7 dK+3Kvo0cJj0cDgtGwEfzAgRuc2cZlHUIdrCRwgTbiKZHnY7MdKqaMixyENddC0bpJai y33BPAsphLl2qvmLZNoeGbyHxPiOqRiFV/FRKDKJ5R94HQv2rGF9SbQrp7uplaNvLyLP qAVSUtrpfWqosFpGQgw39SnRqqQyNP2Ue6FnSFIBeHo1pU8M0C/gPliHA09E/tvS0idC FlxQ== X-Gm-Message-State: ALoCoQmGgLYuScIBApjeB3PImllnr9ZnodHH5dJ1fpmyIlobAaqAH7D3dGnhVFnH1FmaD9P/GaYy X-Received: by 10.66.66.101 with SMTP id e5mr2672383pat.100.1412043941160; Mon, 29 Sep 2014 19:25:41 -0700 (PDT) Original-Received: from heeere (71-35-167-161.tukw.qwest.net. [71.35.167.161]) by mx.google.com with ESMTPSA id qx4sm13591797pbc.14.2014.09.29.19.25.39 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 29 Sep 2014 19:25:40 -0700 (PDT) In-Reply-To: <87egutzzwh.fsf@skimble.plus.com> (Sharon Kimble's message of "Tue, 30 Sep 2014 01:59:42 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.192.178 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 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: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:17146 Archived-At: Sharon Kimble writes: > Brady Trainor writes: > >> Hi, something is wrong with my gpg use, so until I fix it, I will just >> enter my password for each use. (I will likely start a new thread about >> my gpg soon.) >> >> But something I never really liked, is the prompt when doing so to save >> this information in `~/.authinfo'. >> >> Is there a way to prevent this prompt. I think it'd be nice for initial >> setup of Gnus as well, as storing passwords (securely) may not be the >> first thing you get around to, and one may get nervous about accidently >> saving it in this plain text file. > > Hi Brady. > > I have *never* seen this behaviour, so maybe it is some slight quirk at > your end which is causing it? Perhaps the way that something is > saved/configured in your gpg setup? But whatever is causing it, it is > definitely non-standard behaviour! > > Sharon. I meant I was not using gpg for now. I believe if you comment out your password, you should be able to reproduce the prompt. I think I've solved it. From http://bzr.savannah.gnu.org/lh/emacs/emacs-24/annotate/head:/lisp/gnus/auth-source.el, I find ,---- | (let ((prompt (format "Save auth info to file %s? " file)) | (done (not (eq auth-source-save-behavior 'ask))) `---- Which inspires ,---- | (setq auth-source-save-behavior nil) `---- which appears to be the best way. Not sure if there was a better way to browse the lisp, I was simultaneously downloading it when I found it with Ctrl+f in the browser. Also, can ensure it prompts for a gpg file instead of a plain text one, with ,---- | (setq auth-sources '("~/.authinfo.gpg")) `---- -- Brady