1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-26 04:46:11 +02:00
git/t/t5100
Đoàn Trần Công Danh 0b689562ca mailinfo: warn if CRLF found in decoded base64/QP email
When SMTP servers receive 8-bit email messages, possibly with only
LF as line ending, some of them decide to change said LF to CRLF.

Some mailing list softwares, when receive 8-bit email messages,
decide to encode those messages in base64 or quoted-printable.

If an email is transfered through above mail servers, then distributed
by such mailing list softwares, the recipients will receive an email
contains a patch mungled with CRLF encoded inside another encoding.

Thus, such CR (in CRLF) couldn't be dropped by "mailsplit".
Hence, the mailed patch couldn't be applied cleanly.
Such accidents have been observed in the wild [1].

Instead of silently rejecting those messages, let's give our users
some warnings if such CR (as part of CRLF) is found.

[1]: https://nmbug.notmuchmail.org/nmweb/show/m2lf9ejegj.fsf%40guru.guru-group.fi

Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2021-05-10 15:06:22 +09:00
..
.gitattributes
0001mboxrd
0002mboxrd
comment.expect
comment.in
embed-from.expect
embed-from.in
empty
info-from.expect
info-from.in
info0001
info0002
info0003
info0004
info0005
info0006
info0007
info0008
info0009
info0010
info0011
info0012
info0012--message-id
info0013
info0014
info0014--scissors
info0015
info0015--no-inbody-headers
info0016
info0016--no-inbody-headers
info0017
info0018
info0018--no-inbody-headers
msg0001
msg0002
msg0003
msg0004
msg0005
msg0006
msg0007
msg0008
msg0009
msg0010
msg0011
msg0012
msg0012--message-id
msg0013
msg0014
msg0014--scissors
msg0015
msg0015--no-inbody-headers
msg0016
msg0016--no-inbody-headers
msg0017
msg0018
msg0018--no-inbody-headers
nul-b64.expect
nul-b64.in
nul-plain
patch0001
patch0002
patch0003
patch0004
patch0005
patch0006
patch0007
patch0008
patch0009
patch0010
patch0011
patch0012
patch0012--message-id
patch0013
patch0014
patch0014--scissors
patch0015
patch0015--no-inbody-headers
patch0016
patch0016--no-inbody-headers
patch0017
patch0018
patch0018--no-inbody-headers
quoted-cr-info
quoted-cr-msg
quoted-cr-patch
quoted-cr.mbox
quoted-from.expect
quoted-from.in
quoted-string.expect
quoted-string.in
rfc2047-info-0001
rfc2047-info-0002
rfc2047-info-0003
rfc2047-info-0004
rfc2047-info-0005
rfc2047-info-0006
rfc2047-info-0007
rfc2047-info-0008
rfc2047-info-0009
rfc2047-info-0010
rfc2047-info-0011
rfc2047-samples.mbox
sample.mbox
sample.mboxrd