Thread (34 messages) flat view 34 messages, 6 authors, 2016-08-13

Re: [PATCH 4/4] git-imap-send: Add method to convert from LF to CRLF

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2016-06-15 22:48:12

Possibly related (same subject, not in this thread)


On Tue, 9 Feb 2010, Hitoshi Mitake wrote:
Some strict IMAP servers (e.g. Cyrus) don't
allow "bare newlines ('\n')" in messages.
So I added new boolean option "lf-to-crlf" to imap section.
If this option enabled, git-imap-send converts LF to CRLF("\r\n").

If you want to use it, add line:
	lf-to-crlf
to [imap] section of your .gitconfig .
Hmm. Should this even be an option? Maybe we should _always_ do CRLF. That 
does seem to be the technically correct thing to do for SMTP and IMAP.

rfc2822 (smtp) is pretty clear that CRLF is the line ending, and neither 
CR nor LF must ever be sent individually. That's true both for headers and 
the body of the email. The same goes for rfc3501 (imap).

So I suspect that CRLF should be unconditional.

		Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help