From: Simon Josefsson <jas@pdc.kth.se>
Cc: ding@gnus.org
Subject: Re: B c with nnimap: extra newlines
Date: 13 Jan 2000 15:39:58 +0100 [thread overview]
Message-ID: <ilupuv69gsh.fsf@p02.pdc.kth.se> (raw)
In-Reply-To: Janne Rinta-Manty's message of "Thu, 13 Jan 2000 14:13:57 GMT"
Janne Rinta-Manty <jrm@iki.fi> 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)
next prev parent reply other threads:[~2000-01-13 14:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-12-15 13:42 Janne Rinta-Manty
2000-01-13 14:13 ` Janne Rinta-Manty
2000-01-13 14:39 ` Simon Josefsson [this message]
2000-01-14 12:05 ` Janne Rinta-Manty
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ilupuv69gsh.fsf@p02.pdc.kth.se \
--to=jas@pdc.kth.se \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).