From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/78017 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: Outgoing mail defaults Date: Sat, 19 Mar 2011 20:41:37 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87aagqsh4e.fsf@lifelogs.com> References: <87d3ln9b7y.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1300585329 23440 80.91.229.12 (20 Mar 2011 01:42:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 20 Mar 2011 01:42:09 +0000 (UTC) Cc: ding@gnus.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 20 02:42:05 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q17ef-0000JL-BU for ged-emacs-devel@m.gmane.org; Sun, 20 Mar 2011 02:42:05 +0100 Original-Received: from localhost ([127.0.0.1]:57979 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q17ee-0003En-T9 for ged-emacs-devel@m.gmane.org; Sat, 19 Mar 2011 21:42:04 -0400 Original-Received: from [140.186.70.92] (port=34948 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q17eX-000381-3i for emacs-devel@gnu.org; Sat, 19 Mar 2011 21:42:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q17eT-0002Re-0g for emacs-devel@gnu.org; Sat, 19 Mar 2011 21:41:56 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:47890) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q17eS-0002RS-NW for emacs-devel@gnu.org; Sat, 19 Mar 2011 21:41:52 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q17eP-0000HC-RG for emacs-devel@gnu.org; Sun, 20 Mar 2011 02:41:49 +0100 Original-Received: from c-67-186-102-106.hsd1.il.comcast.net ([67.186.102.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Mar 2011 02:41:49 +0100 Original-Received: from tzz by c-67-186-102-106.hsd1.il.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Mar 2011 02:41:49 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 50 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-67-186-102-106.hsd1.il.comcast.net 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" User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:bql2TkqpCjfEs+50qwCiEU/98tQ= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:137437 gmane.emacs.gnus.general:78017 Archived-At: On Sat, 19 Mar 2011 15:11:45 -0400 Chong Yidong wrote: CY> Lars Magne Ingebrigtsen writes: >> 1) change the defaults to use smtpmail >> >> 2) change smtpmail so that it queries the user for SMTP host name (and >> possibly port number) >> >> 3) use customize to save the user's reply CY> These sound like the right thing to do, indeed. Anyone feel like CY> implementing it? (CC-ed to the Gnus mailing list also) I offered to implement it and gave example code of how auth-source could be used to do it (so it would get and store the user name, password, port number, and host name). Can you look at that earlier in the thread? I can change it if you think it needs to be improved in any way, especially as far as the prompts go. Lars was concerned this was too complicated for the case where the user only wants to give a host name and everything else is unnecessary. In that case it seems indeed that a simple defcustom is an easier solution, but I'm concerned that next will come "oh can we just have the port customizable too... and the user name... and the password... and several sets of connection parameters depending on the location" and again we're back where we were before auth-source: data in Emacs Lisp (defcustoms or not), all over the place, unencrypted, with ad hoc syntax. So instead I'd like to make it possible to have the line machine mysmtphost port smtp in the authinfo.gpg file. I would do this by changing the example code to start with "does your SMTP host need authentication?" and if no, do the simple setup; if yes, do the full setup. The other idea I had was that some people just don't want an authinfo file. They want to store everything in Lisp. So for those cases I can make a "data" auth-source backend which reads/writes using variables that are saved with the Customize facilities. First-time auth-source users can then get the choice between the Secrets API (most secure, least portable); a authinfo file (fairly secure if EPA/EPG is available, portable); or the "data" backend (least secure, most portable). If you don't want to do this and would prefer to just do a defcustom I can write that too, as Lars' proposal went originally. Let me know what you think. Thanks. Ted