[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>
This commit is contained in:
Junio C Hamano 2006-02-06 21:35:25 -08:00
Родитель cc55aaec38
Коммит 8bc5c04a71
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -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);