]> git.ipfire.org Git - thirdparty/git.git/commit - log-tree.h
format-patch: make cover letters always text/plain
authorbrian m. carlson <sandals@crustytoothpaste.net>
Wed, 2 May 2018 02:20:52 +0000 (02:20 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 May 2018 03:55:00 +0000 (12:55 +0900)
commit50cd54ef4e6f4279683b61417a35de7297b55b9d
tree46534a0cfe9d7ff0c7269c9d77ff751e6758737e
parent468165c1d8a442994a825f3684528361727cd8c0
format-patch: make cover letters always text/plain

When formatting a series of patches using --attach and --cover-letter,
the cover letter lacks the closing MIME boundary, violating RFC 2046.
Certain clients, such as Thunderbird, discard the message body in such a
case.

Since the cover letter is just one part and sending it as
multipart/mixed is not very useful, always emit it as text/plain,
avoiding the boundary problem altogether.

Reported-by: Patrick Hemmer <git@stormcloud9.net>
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/log.c
log-tree.c
log-tree.h
t/t4014-format-patch.sh