From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: Outgoing mail defaults Date: Mon, 21 Mar 2011 10:20:22 -0400 Message-ID: References: <87d3ln9b7y.fsf@stupidchicken.com> <87aagqsh4e.fsf@lifelogs.com> <8739miq8yf.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1300717243 8604 80.91.229.12 (21 Mar 2011 14:20:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2011 14:20:43 +0000 (UTC) Cc: ding@gnus.org, emacs-devel@gnu.org To: Ted Zlatanov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 21 15:20:38 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 1Q1fyG-0000Tw-5x for ged-emacs-devel@m.gmane.org; Mon, 21 Mar 2011 15:20:36 +0100 Original-Received: from localhost ([127.0.0.1]:52729 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1fyF-0000ab-4J for ged-emacs-devel@m.gmane.org; Mon, 21 Mar 2011 10:20:35 -0400 Original-Received: from [140.186.70.92] (port=38438 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1fy8-0000VD-Vv for emacs-devel@gnu.org; Mon, 21 Mar 2011 10:20:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1fy4-0005O9-8v for emacs-devel@gnu.org; Mon, 21 Mar 2011 10:20:28 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:37817 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1fy4-0005Ns-3j for emacs-devel@gnu.org; Mon, 21 Mar 2011 10:20:24 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEADL7hk1Ld/X5/2dsb2JhbAClcniITbdTgxuCSASVaQ X-IronPort-AV: E=Sophos;i="4.63,219,1299474000"; d="scan'208";a="97407158" Original-Received: from 75-119-245-249.dsl.teksavvy.com (HELO pastel.home) ([75.119.245.249]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 21 Mar 2011 10:20:23 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id D269158AF5; Mon, 21 Mar 2011 10:20:22 -0400 (EDT) In-Reply-To: <8739miq8yf.fsf@lifelogs.com> (Ted Zlatanov's message of "Sun, 20 Mar 2011 07:20:56 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:137476 gmane.emacs.gnus.general:78048 Archived-At: > How about this approach for first-time setup if people don't like the > above, which avoids the "first found host" solution: Yes, I'm not completely happy about this "first found" 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 I guess such a question might sound unclear to an unsuspecting user; but if you phrase it as "do you need to use authentication" or something like that, it would be fine. > 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 Sounds OK. Stefan