git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bug: format-patch MIME boundary not added to cover letter when attach enabled
@ 2018-04-30  1:40 Patrick Hemmer
  2018-04-30  2:09 ` brian m. carlson
  0 siblings, 1 reply; 8+ messages in thread
From: Patrick Hemmer @ 2018-04-30  1:40 UTC (permalink / raw)
  To: git

When you use `git format-patch --cover-letter --attach`, the cover
letter does not have the trailing MIME boundary. RFC2046 states that the
last part must be followed by a closing boundary. This causes some email
clients (Thunderbird in my case) to discard the message body.
This is experienced with git 2.16.3.

For example:

$ git format-patch --cover-letter --attach --root -o /tmp/out
/tmp/out/0000-cover-letter.patch
/tmp/out/0001-hello-world.patch

$ cat /tmp/out/0000-cover-letter.patch
From a25ac88e6216131e8b000335d32bb99d4e5185ac Mon Sep 17 00:00:00 2001
From: Patrick Hemmer <git@stormcloud9.net>
Date: Sun, 29 Apr 2018 21:26:45 -0400
Subject: [PATCH 0/1] *** SUBJECT HERE ***
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="------------2.16.3"

This is a multi-part message in MIME format.
--------------2.16.3
Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit


*** BLURB HERE ***

Patrick Hemmer (1):
  hello world

-- 
2.16.3

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-05-02  2:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-30  1:40 Bug: format-patch MIME boundary not added to cover letter when attach enabled Patrick Hemmer
2018-04-30  2:09 ` brian m. carlson
2018-04-30  3:30   ` Junio C Hamano
2018-04-30 11:59     ` brian m. carlson
2018-05-01  0:02   ` [PATCH] format-patch: make cover letters always text/plain brian m. carlson
2018-05-01  1:53     ` Eric Sunshine
2018-05-02  0:16       ` brian m. carlson
2018-05-02  2:20     ` [PATCH v2] " brian m. carlson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).