diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2018-05-02 02:20:52 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-02 12:55:00 +0900 |
commit | 50cd54ef4e6f4279683b61417a35de7297b55b9d (patch) | |
tree | 46534a0cfe9d7ff0c7269c9d77ff751e6758737e /log-tree.h | |
parent | 468165c1d8a442994a825f3684528361727cd8c0 (diff) | |
download | git-50cd54ef4e6f4279683b61417a35de7297b55b9d.tar.gz |
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>
Diffstat (limited to 'log-tree.h')
-rw-r--r-- | log-tree.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/log-tree.h b/log-tree.h index deba035187..e668628074 100644 --- a/log-tree.h +++ b/log-tree.h @@ -27,7 +27,8 @@ void format_decorations_extended(struct strbuf *sb, const struct commit *commit, void show_decorations(struct rev_info *opt, struct commit *commit); void log_write_email_headers(struct rev_info *opt, struct commit *commit, const char **extra_headers_p, - int *need_8bit_cte_p); + int *need_8bit_cte_p, + int maybe_multipart); void load_ref_decorations(struct decoration_filter *filter, int flags); #define FORMAT_PATCH_NAME_MAX 64 |