From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#14380: 24.3; `network-stream-open-tls' fails in some imap servers on w32 Date: Thu, 6 Jun 2013 09:15:59 +0100 Message-ID: References: <87k3mw79iv.fsf@lifelogs.com> <87zjvr64lt.fsf_-_@lifelogs.com> <87txly4ll9.fsf@lifelogs.com> <87obbk1trn.fsf@lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1370506635 30165 80.91.229.3 (6 Jun 2013 08:17:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Jun 2013 08:17:15 +0000 (UTC) Cc: 14380@debbugs.gnu.org, emacs-devel@gnu.org To: Ted Zlatanov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 06 10:17:14 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UkVNi-00083H-64 for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Jun 2013 10:17:14 +0200 Original-Received: from localhost ([::1]:50852 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkVNh-0000NQ-MA for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Jun 2013 04:17:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37559) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkVNT-0008RI-Pb for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2013 04:17:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkVNP-0006TK-4J for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2013 04:16:59 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkVNP-0006TC-1G for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2013 04:16:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UkVPS-0006SE-Au; Thu, 06 Jun 2013 04:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Thu, 06 Jun 2013 08:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14380 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: Original-Received: via spool by 14380-submit@debbugs.gnu.org id=B14380.137050671724723 (code B ref 14380); Thu, 06 Jun 2013 08:19:02 +0000 Original-Received: (at 14380) by debbugs.gnu.org; 6 Jun 2013 08:18:37 +0000 Original-Received: from localhost ([127.0.0.1]:53584 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UkVP2-0006Qi-Sf for submit@debbugs.gnu.org; Thu, 06 Jun 2013 04:18:37 -0400 Original-Received: from mail-pd0-f169.google.com ([209.85.192.169]:35670) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UkVOz-0006QM-V6 for 14380@debbugs.gnu.org; Thu, 06 Jun 2013 04:18:35 -0400 Original-Received: by mail-pd0-f169.google.com with SMTP id y10so3052654pdj.28 for <14380@debbugs.gnu.org>; Thu, 06 Jun 2013 01:16:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=7fGufZqwgRdU1iu8AYRi0foozMlDPIteNR887FlegMY=; b=fh3nrfaqnpqeCIlcBjyP4B93UUCaqFkbLazNNVu/Erv0uSn1LHQd6iliKwt9B0x5jf VhJXupBpsi/a9xG/Qxq41X7bxTFYjfsk1qv0sUnNW5WAPrPl0zjjpLm+JBAF6irLLqjw PR1wpq/GbrGFP+nPb/cTPnCLT/z6/1WMtK0EqQvnp6jjDY8Uws3JiH8/Ct4BVVMl102O LWEO/N9u/M4izUri/cxs5Y8QrSVlHvjQkfpMZpxXFP/TTYaJrK4t3xki8Qx4lf092xLV XC1m9y8IA3QoUBuKbQsv0dhyJyoeU32uF5xqjmUiaput6fet2oZBOcDVBqre8Tzvzixk RlBw== X-Received: by 10.66.102.6 with SMTP id fk6mr16016156pab.184.1370506580008; Thu, 06 Jun 2013 01:16:20 -0700 (PDT) Original-Received: by 10.68.231.36 with HTTP; Thu, 6 Jun 2013 01:15:59 -0700 (PDT) In-Reply-To: <87obbk1trn.fsf@lifelogs.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:74834 Archived-At: Thanks! To test, I will load just load the trunks "tls.el" in my existing W32 emacs. (I don't have time to get a windows emacs-building toolchain). As Stefan mentioned, I have already signed papers. Jo=E3o On Wed, Jun 5, 2013 at 4:06 PM, Ted Zlatanov wrote: > On Mon, 20 May 2013 23:07:30 +0100 Jo=E3o T=E1vora = wrote: > > JT> Here is a patch that should be equivalent to the defadvice I'm using. > JT> As I said, it works for me. Also I didn't have a VC copy of emacs so = I > JT> used `diff-buffer-with-file' > > I applied something very similar. It's a tiny change so it doesn't > require assignment papers. If you'd like to contribute to GNU Emacs or > other GNU software in the future, I encourage you to file them. > > revno: 112858 > timestamp: Wed 2013-06-05 11:03:37 -0400 > message: > (open-tls-stream): Remove unneeded buffer contents when opening the con= nection. > > This change didn't break anything in my testing. Please test so I can > close the bug if it's fixed for you. > > Ted > > diff -u -L /usr/local/share/emacs/24.3/lisp/net/tls.el.gz -L > \#\ /tmp/jka-com1909LVh > /tmp/buffer-content-1909lpt > --- /usr/local/share/emacs/24.3/lisp/net/tls.el.gz > +++ # > @@ -286,7 +286,11 @@ > (format "Host name in certificate doesn't \ > match `%s'. Connect anyway? " host)))))) > (setq done nil) > - (delete-process process))) > + (delete-process process)) > + ;; delete all the informational messages that could > + ;; confuse futures users of `buffer' > + ;; > + (delete-region (point-min) (point))) > (message "Opening TLS connection to `%s'...%s" > host (if done "done" "failed")) > (when use-temp-buffer > --=20 Jo=E3o T=E1vora