git-imap-send: Convert LF to CRLF before storing patch to draft box
authorHitoshi Mitake <redacted>
Fri, 12 Feb 2010 11:36:12 +0000 (20:36 +0900)
committerJunio C Hamano <redacted>
Fri, 12 Feb 2010 19:21:28 +0000 (11:21 -0800)
commit67d176300c0a79d5cf65402c641fcec7c5388f29
tree083da7445d15ef123034335ffc2fb5ee9c9345b1
parent902f235378cb2b2f6dd5dd664b9630c95321f0ae
git-imap-send: Convert LF to CRLF before storing patch to draft box

When storing a message over IMAP (RFC 3501 6.3.11), the message should be
in the format of an RFC 2822 message; most notably, CRLF must be used as
a line terminator.

Convert "\n" line endings in the payload to CRLF before feeding it to
IMAP APPEND command.

Signed-off-by: Hitoshi Mitake <redacted>
Signed-off-by: Junio C Hamano <redacted>
imap-send.c
git clone https://git.99rst.org/PROJECT