From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.bugs Subject: bug#14380: 24.3; `network-stream-open-tls' fails in some imap servers on w32 Date: Wed, 05 Jun 2013 11:06:52 -0400 Organization: =?UTF-8?Q?=D0=A2=D0=B5=D0=BE=D0=B4=D0=BE=D1=80_?= =?UTF-8?Q?=D0=97=D0=BB=D0=B0=D1=82=D0=B0=D0=BD=D0=BE=D0=B2?= @ Cienfuegos Message-ID: <87obbk1trn.fsf__34379.8613096171$1370444913$gmane$org@lifelogs.com> 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 1370444907 2358 80.91.229.3 (5 Jun 2013 15:08:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Jun 2013 15:08:27 +0000 (UTC) Cc: 14380@debbugs.gnu.org, emacs-devel@gnu.org To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 05 17:08:27 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 1UkFK6-0001Bp-Kd for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Jun 2013 17:08:26 +0200 Original-Received: from localhost ([::1]:57199 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkFK6-0008GN-4i for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Jun 2013 11:08:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkFJj-0007uW-Iv for bug-gnu-emacs@gnu.org; Wed, 05 Jun 2013 11:08:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkFJe-00079l-Tn for bug-gnu-emacs@gnu.org; Wed, 05 Jun 2013 11:08:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36111) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkFJe-00079h-Qv for bug-gnu-emacs@gnu.org; Wed, 05 Jun 2013 11:07:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UkFLe-0000wR-3B; Wed, 05 Jun 2013 11:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ted Zlatanov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Wed, 05 Jun 2013 15:10: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.13704449493510 (code B ref 14380); Wed, 05 Jun 2013 15:10:01 +0000 Original-Received: (at 14380) by debbugs.gnu.org; 5 Jun 2013 15:09:09 +0000 Original-Received: from localhost ([127.0.0.1]:52701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UkFKm-0000uT-MQ for submit@debbugs.gnu.org; Wed, 05 Jun 2013 11:09:09 -0400 Original-Received: from mail-qe0-f41.google.com ([209.85.128.41]:65074) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UkFKj-0000tg-IY for 14380@debbugs.gnu.org; Wed, 05 Jun 2013 11:09:06 -0400 Original-Received: by mail-qe0-f41.google.com with SMTP id b4so1129301qen.28 for <14380@debbugs.gnu.org>; Wed, 05 Jun 2013 08:06:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lifelogs.com; s=google; h=from:to:cc:subject:organization:references:x-face:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:user-agent :mime-version:content-type:content-transfer-encoding; bh=vAlI3cIo9RJ6sw7Mq3Kh8n9TS2xojBreiSCYZBp+fME=; b=INxBrgkmWepMwKaFoujmAA4AyUhBDHX2zs/DHdxUMj0WBxqpfRxo8Nfeaf7vOjAqPl 79nsJAFFFA383aVWbMaC+R/+8aslnhIcECnsi5w0+6g4RBkFgjv/ag7uE/4DJ89PkX5n bCxFGNZ2txIigrxoynHJddWKFsytBcaEJhU8I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:organization:references:x-face:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:user-agent :mime-version:content-type:content-transfer-encoding :x-gm-message-state; bh=vAlI3cIo9RJ6sw7Mq3Kh8n9TS2xojBreiSCYZBp+fME=; b=fJ5soXGSPCx09C0PnMAHmY/YnCsO6CUXFQV297sZwuCKqjkhylAiVFeX2/j2kFiJac cU3zml8ISL8VoE3mhWh+Ig7gvXsmXukj9m0P64PIlPQBI1C9kduokJoGSQM+tI+ITyN6 O2H4JLVJgY6NCov1sJ6J9o6hY3RmbTdExzWokWF71J8JqbV/IxLAMmM1UskdIZIQ+qra K660QLl9t7iHzOklPdNnWzmgc2VYKLLRpHXDrcj5XrhPFloEBS3n3Mo2XCBYJlwiRq1C kfwpY+RRwhTUut6+if2IhY4VmlHv2+uP9Ysa65a5IFRpimfQt66oOs0IsQEKk2+lAuPH H2bg== X-Received: by 10.49.96.10 with SMTP id do10mr23359403qeb.23.1370444816087; Wed, 05 Jun 2013 08:06:56 -0700 (PDT) Original-Received: from heechee (pool-72-93-26-80.bstnma.east.verizon.net. [72.93.26.80]) by mx.google.com with ESMTPSA id j2sm55255468qer.1.2013.06.05.08.06.54 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 05 Jun 2013 08:06:54 -0700 (PDT) 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" Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Mon, 20 May 2013 23:07:30 +0100") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) X-Gm-Message-State: ALoCoQnqUTfLvkpWxG7XdDwT3EmuuTCrXI1XWX6X/zVhOdCzxlqUS07da3ta+TT+JlRHVqOFgr6U 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:74819 Archived-At: On Mon, 20 May 2013 23:07:30 +0100 Jo=E3o T=E1vora w= rote:=20 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 conne= ction. 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