From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Opportunistic STARTTLS in smtpmail.el Date: Mon, 06 Jun 2011 12:06:27 -0300 Message-ID: References: <8762ptue8r.fsf@lifelogs.com> <87k4e8ucw3.fsf@lifelogs.com> <87liyofwxp.fsf@lifelogs.com> <874o5cfui5.fsf@lifelogs.com> <87liyndz5l.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1307379578 24914 80.91.229.12 (6 Jun 2011 16:59:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Jun 2011 16:59:38 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 06 18:59:34 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 1QTd9F-0004ml-CH for ged-emacs-devel@m.gmane.org; Mon, 06 Jun 2011 18:59:29 +0200 Original-Received: from localhost ([::1]:41564 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTd9E-00040C-6s for ged-emacs-devel@m.gmane.org; Mon, 06 Jun 2011 12:59:28 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTbNz-0006Lo-NE for emacs-devel@gnu.org; Mon, 06 Jun 2011 11:06:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QTbNv-0005IV-CI for emacs-devel@gnu.org; Mon, 06 Jun 2011 11:06:35 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:58501) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTbNv-0005IN-34 for emacs-devel@gnu.org; Mon, 06 Jun 2011 11:06:31 -0400 Original-Received: from 213-159-126-200.fibertel.com.ar ([200.126.159.213]:54584 helo=ceviche.home) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1QTbNu-0006fw-Kp; Mon, 06 Jun 2011 11:06:30 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 2607266189; Mon, 6 Jun 2011 12:06:27 -0300 (ART) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Fri, 03 Jun 2011 23:48:50 +0200") 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, 3) X-Received-From: 140.186.70.10 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:140230 Archived-At: >> Oh, right, it should be smtpmail-use-auth. > I don't think that's necessary. I don't understand how you avoid the need for it: > Here's my vision of how this would work for a person using Emacs 24 to > send an email for the first time. I'm more interested in the subsequent times: > 1) smtpmail would see that there's no host setup, so it would prompt the > user for the SMTP host and store it via customize. For subsequent times, this is fine: no prompting. > 2) smtpmail connects to the server, and possibly does STARTTLS OK so far. > III) It sees whether the server says that it accepts AUTH or not. If it > does, smtpmail then asks auth-source for credentials. There will be > none there, probably If the user has a ~/.authinfo.gpg, the user will be prompted at this point: *bad* since we don't know yet whether this prompt is needed. Stefan