From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: smtpmail and starttls improvement when starttls program is missing Date: Tue, 04 Nov 2008 10:59:54 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <861vxrv33p.fsf@lifelogs.com> References: <86wsfrayh9.fsf@lifelogs.com> <861vxw64ti.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1225822011 6272 80.91.229.12 (4 Nov 2008 18:06:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Nov 2008 18:06:51 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 04 19:07:54 2008 connect(): Connection refused 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.50) id 1KxQJb-0006ca-V5 for ged-emacs-devel@m.gmane.org; Tue, 04 Nov 2008 19:07:44 +0100 Original-Received: from localhost ([127.0.0.1]:42673 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KxQIU-0004XZ-V5 for ged-emacs-devel@m.gmane.org; Tue, 04 Nov 2008 13:06:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KxQHU-00041X-Ln for emacs-devel@gnu.org; Tue, 04 Nov 2008 13:05:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KxQHS-00040b-O7 for emacs-devel@gnu.org; Tue, 04 Nov 2008 13:05:31 -0500 Original-Received: from [199.232.76.173] (port=50455 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KxQHS-00040T-E5 for emacs-devel@gnu.org; Tue, 04 Nov 2008 13:05:30 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:58139 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KxQHS-00014O-Am for emacs-devel@gnu.org; Tue, 04 Nov 2008 13:05:30 -0500 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1KxPKw-0000v9-In for emacs-devel@gnu.org; Tue, 04 Nov 2008 17:05:02 +0000 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Nov 2008 17:05:02 +0000 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Nov 2008 17:05:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 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.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:Pq7hDaofNfVilPfCH+cgU0C+GHc= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:105349 Archived-At: On Fri, 31 Oct 2008 12:40:41 -0500 Ted Zlatanov wrote: TZ> On Wed, 29 Oct 2008 16:21:54 -0500 Ted Zlatanov wrote: TZ> Currently, smtpmail-open-stream will quietly fail if the starttls / TZ> gnutls program is not available. The changes below (starttls diff is TZ> against the Gnus trunk but it shouldn't matter) introduce the function TZ> starttls-any-program-available which will return either starttls-program TZ> or starttls-gnutls-program, whichever is usable. It also shows a TZ> message, so a user can see in *Messages* that no STARTTLS protocol TZ> transport is available. smtpmail-open-stream then uses the function, TZ> simplifying the logic flow. TZ> The message will only be shown when starttls-any-program-available is TZ> called, but note that it is called by smtpmail-open-stream iff there is TZ> a match for the server in smtpmail-starttls-credentials. This means the TZ> user won't see the message unless he has an entry for the server that TZ> implies he wants STARTTLS. TZ> If there are no objections I will commit my patch over the weekend. The starttls.el changes are in the Gnus CVS trunk. When they are synchronized to the Emacs CVS trunk, I will commit the smtpmail.el changes as well. Ted