From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67988 Path: news.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.gnus.general Subject: Re: nnimap with openssl stopping up after connecting in Windows Date: Fri, 26 Dec 2008 12:21:29 +0100 Organization: Probably a good idea Message-ID: References: <833ahh3nud.fsf@torus.sehlabs.com> <877i6th1uo.fsf@mocca.josefsson.org> <87zljpidgh.fsf@hjemme.hjemme.lan> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1230290544 19160 80.91.229.12 (26 Dec 2008 11:22:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Dec 2008 11:22:24 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M16434@lists.math.uh.edu Fri Dec 26 12:23:32 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 1LGAmr-0004p4-Mr for ding-account@gmane.org; Fri, 26 Dec 2008 12:23:26 +0100 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 1LGAlR-0008Ec-KX; Fri, 26 Dec 2008 05:21:57 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1LGAlP-0008EJ-NY for ding@lists.math.uh.edu; Fri, 26 Dec 2008 05:21:55 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1LGAlM-0006Mm-Kx for ding@lists.math.uh.edu; Fri, 26 Dec 2008 05:21:55 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1LGAla-0001uc-00 for ; Fri, 26 Dec 2008 12:22:06 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LGAlG-0004Hj-Jv for ding@gnus.org; Fri, 26 Dec 2008 11:21:46 +0000 Original-Received: from ti0064a340-0073.bb.online.no ([88.90.181.73]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Dec 2008 11:21:46 +0000 Original-Received: from sb by ti0064a340-0073.bb.online.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Dec 2008 11:21:46 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 42 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ti0064a340-0073.bb.online.no Mail-Copies-To: never User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.3 (windows-nt) Cancel-Lock: sha1:XNSjZJjqnhYkQ2o8VFwavu6BG9M= X-Spam-Score: -3.6 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67988 Archived-At: >>>>> Steinar Bang : > So the fix can be either: > - Make emacs stop changing LF to CRLF in this case > - Make the imap dialogue operate with the broken line endings. I guess > that would mean understanding CRCRLF where a CRLF is expected, and > outputting LF where a CRLF would normally be expected (I guess this > is what Simon's proposal was about...?) I've tried the second alternative, by setting: ((nnimap "myserver" (nnimap-address "myserver.dyndns.org") (nnimap-stream ssl) (imap-server-eol "\r\r\n") (imap-client-eol "\r\r\n")) (I've tried both CRCRLF and just LF for the imap-client-eol) without success. The contents of the " *nnimap* myserver" buffer is * BYE Disconnected for inactivity.^M read:errno=0 (sanitized extra CR character) So I guess the right thing to do here, is to make sure there is no form of end-of-line translation going on in the nnimap buffer. I wonder what the correct approach here, is? (set-buffer-process-coding-system 'undecided 'undecided) or maybe (set-buffer-file-coding-system 'undecided 'undecided) ? Or should I use 'undecided-unix rather than 'undecided to emulate the unix/linux behaviour? I'll try using set-buffer-process-coding-system first. I'll hook it into the imap-disable-multibyte inline function, which seems to be called in all of the relevant places. (And, yeah... remember to remove the modified end of line settings on the "myserver" nnimap server as well)