am: learn to process quoted lines that ends with CRLF

In previous changes, mailinfo has learnt to process lines that decoded
from base64 or quoted-printable, and ends with CRLF.

Let's teach "am" that new trick, too.

Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Đoàn Trần Công Danh
2021-05-10 00:12:13 +07:00
committed by Junio C Hamano
parent 133a4fda59
commit 59b519ab7e
6 changed files with 110 additions and 0 deletions

View File

@ -6,6 +6,7 @@
#define MAX_BOUNDARIES 5
enum quoted_cr_action {
quoted_cr_unset = -1,
quoted_cr_nowarn,
quoted_cr_warn,
quoted_cr_strip,