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: Fri, 10 May 2013 17:00:32 +0100 Message-ID: References: <83ppwzaqad.fsf@gnu.org> 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 1368201726 22384 80.91.229.3 (10 May 2013 16:02:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 May 2013 16:02:06 +0000 (UTC) Cc: 14380@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 10 18:02:04 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 1Uaplk-00018g-0y for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 May 2013 18:02:04 +0200 Original-Received: from localhost ([::1]:35536 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uaplj-0000yv-4w for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 May 2013 12:02:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uapla-0000rh-6T for bug-gnu-emacs@gnu.org; Fri, 10 May 2013 12:01:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UaplY-0003Aa-Ug for bug-gnu-emacs@gnu.org; Fri, 10 May 2013 12:01:54 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UaplY-0003AN-PO for bug-gnu-emacs@gnu.org; Fri, 10 May 2013 12:01:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Uapli-0002Ex-Gu for bug-gnu-emacs@gnu.org; Fri, 10 May 2013 12:02: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 Resent-Date: Fri, 10 May 2013 16:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14380 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14380-submit@debbugs.gnu.org id=B14380.13682016688467 (code B ref 14380); Fri, 10 May 2013 16:02:02 +0000 Original-Received: (at 14380) by debbugs.gnu.org; 10 May 2013 16:01:08 +0000 Original-Received: from localhost ([127.0.0.1]:35812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Uapkp-0002CW-E4 for submit@debbugs.gnu.org; Fri, 10 May 2013 12:01:07 -0400 Original-Received: from mail-pa0-f49.google.com ([209.85.220.49]:53368) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Uapkm-0002CF-AK for 14380@debbugs.gnu.org; Fri, 10 May 2013 12:01:06 -0400 Original-Received: by mail-pa0-f49.google.com with SMTP id bi5so3055658pad.36 for <14380@debbugs.gnu.org>; Fri, 10 May 2013 09:00:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=oLu+9EBDKlyvi3q/LDoNY6S6wFKkkqUvt2gm/RqAoCo=; b=Bk7p81/a/NjmytRPVrmuUUWuZyHPms1/DRkr2IMSHL3FaCUbrYizjx4arSrvBKXnnu 18J4zTvE4NYUybPQON+M+9toUjdg+Dki87xSolrLNY98v51Xzc+v0jY1taJp2MaOtdry o3JNdG7mODQpzxRK7ulBZL/Foj5kWQczEOxLt9xveirs0VCVpGwt4ALfYQD+AZOzxS7j lswtvyEXIF3hczQYip5QqQHd0KTp7pqxE469K2vML6iNGI5W6+AThSaRo7fmChNAP8p9 XZkpxgfgMQ+sx1wJaVyaEEr3ybcsxVdfr5x3yNLNj8l7rbmJxNUUkSYYf+uFbdAi1LO3 w8Og== X-Received: by 10.66.144.98 with SMTP id sl2mr18634847pab.92.1368201652637; Fri, 10 May 2013 09:00:52 -0700 (PDT) Original-Received: by 10.68.219.137 with HTTP; Fri, 10 May 2013 09:00:32 -0700 (PDT) In-Reply-To: <83ppwzaqad.fsf@gnu.org> 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:74130 Archived-At: More or less, you didn't misunderstand my analysis, but I didn't use built-in tls because its not the default (I did see some references to it, and the function seems to be fboundp (whereas in linux its not) but the code path didn't lead that way for some reason). With emacs -Q, setting gnus-select-method that way and then doing M-x gnus fails. If the builtin tls fixes this and its the "recommended way" it should be the default no? Maybe it *is* the default but emacs -Q possibly configured itself to use some external gnutls and configure itself after it. I'm using cygwin, so that might be the case. In that case, this might be seen as a cygwin bug, in which case I apologize for the noise. btw: how to I configure emacs to use builtin gnutls? J On Fri, May 10, 2013 at 3:00 PM, Eli Zaretskii wrote: > > > From: joaotavora@gmail.com (Jo=E3o T=E1vora) > > Date: Fri, 10 May 2013 13:49:20 +0100 > > > > > > (list stream > > (network-stream-get-response stream start eoc) > > (network-stream-command stream capability-command eoc) > > 'tls) > > > > This is turn is because code immediately preceding it > > > > ;; If we're using tls.el, we have to delete the output from > > ;; openssl/gnutls-cli. > > (when (and (null use-builtin-gnutls) > > eoc) > > (network-stream-get-response stream start eoc) > > (goto-char (point-min)) > > (when (re-search-forward eoc nil t) > > (goto-char (match-beginning 0)) > > (delete-region (point-min) (line-beginning-position)))) > > > > is not really doing what it says it's doing: it's not deleting enough > > input, and the search for capabilities actually returns the IMAP > > greeting. > > Why don't you use the built-in gnutls? This is the recommended way of > using GnuTLS on Windows. > > Or did I misunderstand your analysis? -- Jo=E3o T=E1vora