X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=mailinfo.c;h=ff2d4d403826b035a7bb123dc74a50af9a76e353;hb=01df529722618a78d2acf6159c7b1e65f565cabc;hp=0265a29a3855902e25e44099663c2973bbe9f53e;hpb=2414721b194453f058079d897d13c4e377f92dc6;p=git.git diff --git a/mailinfo.c b/mailinfo.c index 0265a29a..ff2d4d40 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);