summaryrefslogtreecommitdiffstats
path: root/mailinfo.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-02-07 06:35:25 +0100
committerJunio C Hamano <junkio@cox.net>2006-02-07 06:37:53 +0100
commit8bc5c04a715ee0746df2bcd7e0924f4119140ad2 (patch)
treede8fb85e446ac0651361c529cdc3cefb45d7cb1d /mailinfo.c
parentDocs: minor git-push copyediting (diff)
downloadgit-8bc5c04a715ee0746df2bcd7e0924f4119140ad2.tar.xz
git-8bc5c04a715ee0746df2bcd7e0924f4119140ad2.zip
[PATCH] mailinfo: reset CTE after each multipart
If the first part uses quoted-printable to protect iso8859-1 name in the commit log, and the second part was plain ascii text patchfile without even Content-Transfer-Encoding subheader, we incorrectly tried to decode the patch as quoted printable. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'mailinfo.c')
-rw-r--r--mailinfo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mailinfo.c b/mailinfo.c
index 0265a29a38..ff2d4d4038 100644
--- a/mailinfo.c
+++ b/mailinfo.c
@@ -707,6 +707,9 @@ static void handle_multipart_body(void)
if (!len) {
if (handle_multipart_one_part() < 0)
return;
+ /* Reset per part headers */
+ transfer_encoding = TE_DONTCARE;
+ charset[0] = 0;
}
else
check_subheader_line(line, len);