From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nathaniel Calloway Newsgroups: gmane.emacs.help Subject: Re: Problem with imap.el under Windows Date: Tue, 15 Apr 2008 19:26:49 -0400 Organization: Road Runner High Speed Online http://www.rr.com Message-ID: References: <28ebf622-0352-4587-86c4-10535700cab2@m73g2000hsh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1208320160 20569 80.91.229.12 (16 Apr 2008 04:29:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Apr 2008 04:29:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 16 06:29:55 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JluwX-0006MN-UO for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Apr 2008 01:52:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jluvt-00030H-H2 for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Apr 2008 19:51:25 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!post02.iad01!roadrunner.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (windows-nt) Cancel-Lock: sha1:VBbjcpCNLRfQKqsNf2hgo9s9qgM= Original-Lines: 41 Original-NNTP-Posting-Host: 67.241.7.2 Original-X-Complaints-To: abuse@rr.com Original-Xref: shelby.stanford.edu gnu.emacs.help:157954 X-Mailman-Approved-At: Tue, 15 Apr 2008 19:49:46 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:53318 Archived-At: Jason Rumney writes: Thanks so much for your help! You've been the most helpful of anyone I've asked yet. > While C-x b *test* C-: (start-process "test" "*test*" "gnutls-cli" "- > p" "993" "IMAP-SERVER") is missing the last line, and if you > subsequently do (process-send-string "test" "1 CAPABILITY"), the "* OK > Dovecot ready" line appears, but the output of the capability command > does not appear until you issue another command. Even (process-send- > string "test" "2 LOGOUT") does not appear to terminate the process > until you give it another line of output. Well, crud. Windows was the culprit, it appears. I have replicated the above, and figured out that this is indeed the problem with the functions I mentioned. > Besides that, Gnus forces the process encoding to binary, so it picks > up all the ^M characters from the server (most internet protocols use > CRLF line ends), but the buffer into which it puts the output does not > have an encoding specified, so it will be created with the default > line-end convention for the platform. Effectively this means that on > Windows, depending on how the information is subsequently read from > that buffer by Gnus, you may end up with a double ^M^M at the end of > each line, which might cause problems somewhere. I can't get far > enough through to see if this is really a problem, but it might > explain why all the methods that involve external programs have > problems, not just ones that use the broken gnutls-cli. All the other external programs have the same problem. They are all waiting for the "OK IMAP server ready" message, so they check once a second for enternity. Faking a connection and sending the messages with ^M's back into imap.el didn't cause any problems...yet. Well, this seems hackable, but do you have any insight into ways arround this. I will give it a try nonetheless. Thanks again, -Nat