From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67236 Path: news.gmane.org!not-for-mail From: "Steven E. Harris" Newsgroups: gmane.emacs.gnus.general Subject: Trouble connecting with IMAP (Windows Emacs with Cygwin SSL/TLS tools) Date: Sat, 16 Aug 2008 22:58:22 -0400 Organization: SEH Labs Message-ID: <83myjcfitz.fsf@torus.sehlabs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1218942015 27898 80.91.229.12 (17 Aug 2008 03:00:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Aug 2008 03:00:15 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M15687@lists.math.uh.edu Sun Aug 17 05:01:07 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1KUYVu-00045y-Vg for ding-account@gmane.org; Sun, 17 Aug 2008 05:01:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1KUYTk-0007aE-1t; Sat, 16 Aug 2008 21:58:52 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1KUYTi-0007a2-Bm for ding@lists.math.uh.edu; Sat, 16 Aug 2008 21:58:50 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1KUYTb-0003oj-Hi for ding@lists.math.uh.edu; Sat, 16 Aug 2008 21:58:50 -0500 Original-Received: from mail2.panix.com ([166.84.1.73]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1KUYTb-0007jB-00 for ; Sun, 17 Aug 2008 04:58:43 +0200 Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by mail2.panix.com (Postfix) with ESMTP id 4BCD934807 for ; Sat, 16 Aug 2008 22:58:41 -0400 (EDT) Original-Received: from torus.sehlabs.com (c-24-131-239-140.hsd1.pa.comcast.net [24.131.239.140]) by mailbackend.panix.com (Postfix) with ESMTP id 233DDDCBB for ; Sat, 16 Aug 2008 22:58:41 -0400 (EDT) Original-Received: from seh by torus.sehlabs.com with local (Exim 4.69) (envelope-from ) id K5Q5LV-00034C-FF for ding@gnus.org; Sat, 16 Aug 2008 22:58:43 -0400 Mail-Followup-To: ding@gnus.org User-Agent: Gnus/5.110011 (No Gnus v0.11) XEmacs/21.4.21 (cygwin32) X-Spam-Score: 0.0 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67236 Archived-At: I posted a message=B9 with the same subject line to the gnu.emacs.gnus newsgroup, but traffic has been slow there lately. Perhaps the crowd here will be more capable to suggest a solution. I'll repeat the message body of the first message here: I have a recent CVS snapshot of Gnus setup with the Cygwin XEmacs build and the rest of the Cygwin tools (openssl, starttls) working just fine. I can connect to various IMAP servers with encrypted connections. Recently I set up a Windows build of Emacs (GNU Emacs 22.2.1) and I'm trying to get Gnus to work with it similarly. Gnus is able to connect (unencrypted) to NNTP servers, but all of my attempts to connect to IMAP servers fail. I suspect it's a coding system problem with using Cygwin programs to handle the encrypted connections. Here's the *imap-log* buffer resulting from an attempted connection to my IMAP server: ,----[ *imap-log* ] | depth=3D0 /O=3Dmail.panix.com/OU=3DGo to https://www.thawte.com/repositor= y/index.html/OU=3DThawte SSL123 certificate/OU=3DDomain Validated/CN=3Dmail= .panix.com | verify error:num=3D20:unable to get local issuer certificate | verify return:1 | depth=3D0 /O=3Dmail.panix.com/OU=3DGo to https://www.thawte.com/repositor= y/index.html/OU=3DThawte SSL123 certificate/OU=3DDomain Validated/CN=3Dmail= .panix.com | verify error:num=3D27:certificate not trusted | verify return:1 | depth=3D0 /O=3Dmail.panix.com/OU=3DGo to https://www.thawte.com/repositor= y/index.html/OU=3DThawte SSL123 certificate/OU=3DDomain Validated/CN=3Dmail= .panix.com | verify error:num=3D21:unable to verify the first certificate | verify return:1 | * OK [CAPABILITY IMAP4rev1 SASL-IR SORT THREAD=3DREFERENCES MULTIAPPEND U= NSELECT LITERAL+ IDLE CHILDREN NAMESPACE LOGIN-REFERRALS QUOTA AUTH=3DPLAIN= AUTH=3DLOGIN] Dovecot ready.^M | 55 LOGOUT^M | * BYE Logging out^M | 55 OK Logout completed.^M | read:errno=3D0 | 56 LOGIN "seh" "mypass"^M `---- Some things look strange here. Not the "^M" terminators on the lines sent and received from the server. Also note how one side logs out /before/ it logs in. Here's part of the *Messages* buffer during the login attempt: ,----[ *Messages* ] | Checking new news... | Opening nnimap server on panix... | imap: Connecting to mail.panix.com... | imap: Opening SSL connection with `openssl s_client -CApath /usr/ssl/cert= s -quiet -ssl3 -connect %s:%p'...done | Waiting for response from mail.panix.com...done | Parsing authinfo file `~/.authinfo'. | imap: Plaintext authentication... | Unable to open server due to: Buffer *nnimap* panix has no process | Unable to open nnimap:panix, go offline? (y or n)=20 | Opening nnimap server on panix...failed | Checking new news...done `---- I see that there are the two variables `imap-coding-system-for-write' and `imap-coding-system-for-read', which are set to `binary' by default. Might resetting those be related to solving this problem? Any advice would be appreciated. Footnotes:=20 =B9 <83hc9lghtb.fsf@torus.sehlabs.com> http://groups.google.com/group/gnu.emacs.gnus/msg/a90169bb2ec0d44b http://groups.google.com/group/gnu.emacs.gnus/browse_frm/thread/9d36d318c= 574966b --=20 Steven E. Harris