From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/28748 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: B c with nnimap: extra newlines Date: 13 Jan 2000 15:39:58 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035165539 31438 80.91.224.250 (21 Oct 2002 01:58:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:58:59 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from spinoza.math.uh.edu (spinoza.math.uh.edu [129.7.128.18]) by mailhost.sclp.com (Postfix) with ESMTP id ABFD1D051E for ; Thu, 13 Jan 2000 11:14:52 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by spinoza.math.uh.edu (8.9.1/8.9.1) with ESMTP id KAB06736; Thu, 13 Jan 2000 10:14:18 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 13 Jan 2000 10:14:18 -0600 (CST) Original-Received: from mailhost.sclp.com (sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id KAA13229 for ; Thu, 13 Jan 2000 10:09:21 -0600 (CST) Original-Received: from p02.pdc.kth.se (p02.pdc.kth.se [130.237.230.137]) by mailhost.sclp.com (Postfix) with ESMTP id 94DF5D0520 for ; Thu, 13 Jan 2000 09:40:40 -0500 (EST) Original-Received: (from jas@localhost) by p02.pdc.kth.se (8.9.3/8.9.3) id PAA13854; Thu, 13 Jan 2000 15:39:58 +0100 X-Authentication-Warning: p02.pdc.kth.se: jas set sender to jas@pdc.kth.se using -f Original-To: Janne Rinta-Manty In-Reply-To: Janne Rinta-Manty's message of "Thu, 13 Jan 2000 14:13:57 GMT" Original-Lines: 47 User-Agent: Gnus/5.0804 (Gnus v5.8.4) Emacs/20.5 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:28748 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:28748 Janne Rinta-Manty writes: > JRM> I have a problem with nnimap: moving articles (B m) to other > JRM> nnimap folders works fine, but copying (B c) doubles every > JRM> newline in the article, including headers. > > I seem to have solved the problem now by commenting out the following > lines from nnimap-request-accept-article: > > ;; turn into rfc822 format (\r\n eol's) > ; (with-current-buffer (current-buffer) > ; (goto-char (point-min)) > ; (while (search-forward "\n" nil t) > ; (replace-match "\r\n"))) > > Assuming the above code works for everybody else, I wonder what's > wrong with my setup. IMAP server? SSH? Or should imap-client-eol be > used instead of "\r\n" (I have set it to "\n")? Are you using SSH port-forwarding? Perhaps it doesn't preserve CRLF? Was that the reason for changing `imap-client-eol'? Anyway, I think there was a bug involved when modifying `imap-client-eol'. Could you please back out your patch and test this instead? Index: imap.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/imap.el,v retrieving revision 1.10 diff -w -u -u -w -r1.10 imap.el --- imap.el 2000/01/04 15:45:06 1.10 +++ imap.el 2000/01/13 14:39:06 @@ -1320,11 +1320,11 @@ (let ((process imap-process) (stream imap-stream)) (with-current-buffer cmd - (when (eq stream 'kerberos4) + (when (not (equal imap-client-eol "\r\n")) ;; XXX modifies buffer! (goto-char (point-min)) (while (search-forward "\r\n" nil t) - (replace-match "\n"))) + (replace-match imap-client-eol))) (and imap-log (with-current-buffer (get-buffer-create imap-log)