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: Mon, 20 May 2013 23:07:30 +0100 Message-ID: References: <87k3mw79iv.fsf@lifelogs.com> <87zjvr64lt.fsf_-_@lifelogs.com> <87txly4ll9.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 1369087716 3830 80.91.229.3 (20 May 2013 22:08:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 May 2013 22:08:36 +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 Tue May 21 00:08:35 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 1UeYFu-0003GG-7e for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 May 2013 00:08:34 +0200 Original-Received: from localhost ([::1]:55502 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeYFt-0003uz-PY for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 May 2013 18:08:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeYFq-0003tl-FA for bug-gnu-emacs@gnu.org; Mon, 20 May 2013 18:08:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UeYFp-0005K9-54 for bug-gnu-emacs@gnu.org; Mon, 20 May 2013 18:08:30 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36882) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeYFp-0005Je-21 for bug-gnu-emacs@gnu.org; Mon, 20 May 2013 18:08:29 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UeYGM-0002i8-04; Mon, 20 May 2013 18:09: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: Mon, 20 May 2013 22:09:01 +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.136908771310346 (code B ref 14380); Mon, 20 May 2013 22:09:01 +0000 Original-Received: (at 14380) by debbugs.gnu.org; 20 May 2013 22:08:33 +0000 Original-Received: from localhost ([127.0.0.1]:53471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UeYFt-0002gp-9B for submit@debbugs.gnu.org; Mon, 20 May 2013 18:08:33 -0400 Original-Received: from mail-pa0-f47.google.com ([209.85.220.47]:48798) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UeYFr-0002gV-BN for 14380@debbugs.gnu.org; Mon, 20 May 2013 18:08:32 -0400 Original-Received: by mail-pa0-f47.google.com with SMTP id kl13so41618pab.6 for <14380@debbugs.gnu.org>; Mon, 20 May 2013 15:07:50 -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=kEFXrELVk/eCi9rL0baBLyeUn2Ip8gaTA9VQ4Flwfd0=; b=v1RxHBHcFZrN8TLeyi4GtUcjnugc5+yyirJlYnZ2MYIqv5sa2USUItab0qWP5DLk9r 4uGUxiMpC2J4exfTavEXjTmtCLQw6d1+Pgb5jEbqju5wMZUrx4Vd/xNEXpXjpTHek5JH NqAFdTUCQ6dfmIHYZQExkUvil8NLvnIZ6xMd2vcLh4fL6BBsB5MQe6q1qHwc+BJqkhht 3OL+1Nmti4HyNfYH9pYDt2weU+5wvKP5QMPmcv8Joft7fRvT6gCDEDAfOu1SYtYvUimv 0a16GfPFDOngFMUDl5fWnWwzSDdi1UTVll78rG0V/zCHkZ7Zypk4CrEj0A9Uq8jVFJPC KAGA== X-Received: by 10.66.248.228 with SMTP id yp4mr64588pac.158.1369087670455; Mon, 20 May 2013 15:07:50 -0700 (PDT) Original-Received: by 10.68.219.137 with HTTP; Mon, 20 May 2013 15:07:30 -0700 (PDT) In-Reply-To: <87txly4ll9.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:74422 Archived-At: On Mon, May 20, 2013 at 12:05 AM, Ted Zlatanov wrote: > > Using an external binary to transport SSL or TLS is a hack IMO. I see, and reading a bit of tls.el it makes sense. It does all this crazy regexp searching... This is a hack in my book too, albeit one that's been working fine, > Did you propose a patch? I would commit a patch but can't write it > despite your great description of the problem. > Here is a patch that should be equivalent to the defadvice I'm using. As I said, it works for me. Also I didn't have a VC copy of emacs so I used `diff-buffer-with-file' 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 Jo=E3o --=20 Jo=E3o T=E1vora