git-imap-send: Convert LF to CRLF before storing patch to draft box
commit67d176300c0a79d5cf65402c641fcec7c5388f29
authorHitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
Fri, 12 Feb 2010 11:36:12 +0000 (12 20:36 +0900)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Feb 2010 19:21:28 +0000 (12 11:21 -0800)
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 <mitake@dcl.info.waseda.ac.jp>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
imap-send.c