From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: Outgoing mail defaults Date: Sun, 20 Mar 2011 07:20:56 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <8739miq8yf.fsf@lifelogs.com> References: <87d3ln9b7y.fsf@stupidchicken.com> <87aagqsh4e.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1300623690 18740 80.91.229.12 (20 Mar 2011 12:21:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 20 Mar 2011 12:21:30 +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 13:21:26 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 1Q1HdM-0004tZ-LS for ged-emacs-devel@m.gmane.org; Sun, 20 Mar 2011 13:21:24 +0100 Original-Received: from localhost ([127.0.0.1]:40837 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1HdM-0001Zz-1s for ged-emacs-devel@m.gmane.org; Sun, 20 Mar 2011 08:21:24 -0400 Original-Received: from [140.186.70.92] (port=45807 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1HdG-0001Zo-Kk for emacs-devel@gnu.org; Sun, 20 Mar 2011 08:21:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1HdF-0007Lt-PX for emacs-devel@gnu.org; Sun, 20 Mar 2011 08:21:18 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:41965) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1HdF-0007LJ-FH for emacs-devel@gnu.org; Sun, 20 Mar 2011 08:21:17 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q1HdC-0004p3-5T for emacs-devel@gnu.org; Sun, 20 Mar 2011 13:21:14 +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 13:21:14 +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 13:21:14 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 36 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:/pSAOk/05LySlGbZQ42Vh0FsTnI= 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:137452 gmane.emacs.gnus.general:78033 Archived-At: On Sat, 19 Mar 2011 23:06:25 -0400 Stefan Monnier wrote: >> 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 SM> I'm not sure I understand what you're suggesting: AFAIK auto-source SM> maintains a database of how to connect to a given host, not which host SM> to use for which kind of service. SM> Or are you suggesting the smtpmail should default to using "whichever SM> host name appears in .authinfo where the associated port is `smtp'"? The first such host name, yes. There are really two cases: SMTP with and without passwords. Because I think the former should try to use auth-source I'm trying to make the latter use it as well. I can understand if it seems like overkill. How about this approach for first-time setup if people don't like the above, which avoids the "first found host" solution: 1) ask the user about the SMTP server name if `smtpmail-auth-source' is nil (the default) 2) ask the user if the server connection info should be saved through auth-source 3) if yes, do the auth-source creation prompts for user, port, and password 4) use Customize to save `smtpmail-host', `smtpmail-port', and `smtpmail-auth-source' to t or 'never according to (2). From now on the user will either just use `smtpmail-host' and `smtpmail-port' or call `auth-source-search' with :host ,smtpmail-host and (if the port is not nil) :port ,smtpmail-port Ted