From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Karl Fogel Newsgroups: gmane.emacs.devel Subject: Re: more on starttls, gnutls-cli and using tls for mail Date: Sun, 25 Sep 2011 13:26:08 -0400 Message-ID: <87ty80h6tr.fsf@red-bean.com> References: <20039.8838.116211.694328@gargle.gargle.HOWL> <8762m0n5qi.fsf@red-bean.com> <87ty9kpl2q.fsf@niu.edu> <87bovsj72q.fsf@red-bean.com> <87y5xc6a7o.fsf@lifelogs.com> Reply-To: Karl Fogel NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1316971608 4739 80.91.229.12 (25 Sep 2011 17:26:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 25 Sep 2011 17:26:48 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 25 19:26:44 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R7sTT-0001W9-N2 for ged-emacs-devel@m.gmane.org; Sun, 25 Sep 2011 19:26:43 +0200 Original-Received: from localhost ([::1]:58670 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7sTT-00061K-7U for ged-emacs-devel@m.gmane.org; Sun, 25 Sep 2011 13:26:43 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54749) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7sTQ-000608-KR for emacs-devel@gnu.org; Sun, 25 Sep 2011 13:26:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R7sSy-0006eW-Ng for emacs-devel@gnu.org; Sun, 25 Sep 2011 13:26:40 -0400 Original-Received: from mail-vx0-f169.google.com ([209.85.220.169]:42201) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7sSy-0006eS-LC for emacs-devel@gnu.org; Sun, 25 Sep 2011 13:26:12 -0400 Original-Received: by vcbfo14 with SMTP id fo14so2969416vcb.0 for ; Sun, 25 Sep 2011 10:26:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:subject:references:reply-to:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=EnV30rizk349+ToL53qcYNnAVIf0c7Xt5KGV0tHDbA4=; b=Lu6ru/HS2T9sVIg6hVe1Q8LLPYcZ1MDCug60KxA5Kws7wnDshaCvTc413AVC3QYK+a 1FLfX4Bp8JPm8JBrC9MGVz7e0jl+chzzGUrAnfMapRbbUBFMg8A9mIqmOHx6BTD9If7p YIThWfkfrrGcxMQUtAR316hrVvPunf3gEZgu8= Original-Received: by 10.52.99.40 with SMTP id en8mr5586751vdb.410.1316971571945; Sun, 25 Sep 2011 10:26:11 -0700 (PDT) Original-Received: from floss (cpe-66-65-49-129.nyc.res.rr.com. [66.65.49.129]) by mx.google.com with ESMTPS id ie2sm15253328vdb.1.2011.09.25.10.26.10 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 25 Sep 2011 10:26:10 -0700 (PDT) In-Reply-To: <87y5xc6a7o.fsf@lifelogs.com> (Ted Zlatanov's message of "Sun, 25 Sep 2011 08:08:27 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.220.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:144282 Archived-At: Ted Zlatanov writes: >`smtpmail-auth-credentials' is not a good interface for many reasons. >It was very, very well discussed in the past. Everything it can do, >should be possible with `auth-source-search'. > >`auth-source' supports multiple backends. There's no reason we can't >provide a backend that does the dynamic fetching you want and does not >use a authinfo/netrc file. The authinfo/netrc backend supports entry >creation and can share the file with other consumers such as libcurl; >this is the main reason why it's the default now. > >You should also note that you can configure `auth-sources' to use any >combination of backends. So your custom ELisp backend could be first, >then you'd hit the Secrets API, then the authinfo/netrc backend. [...] Thanks. This all sounds good in principle. As a user (even as an Elisp-literate user) I have no idea yet how to take advantage of the functionality you describe above, but I assume that's just a matter of reading the documentation. From what I've read so far, auth-source seems to be a superset of everything anyone could ever want. It may be that after I set up something dynamic, it will be contributable back to Emacs, either as code or as examples for the auth-source Info manual. I'll try to keep that in mind. For now, I'm dynamically constructing ~/.authinfo and then destroying it after the mail is sent, because I got that working and its undeniable awkwardness is a mere annoyance, not a showstopper. -K