Merge branch 'jc/nostat'
[gitweb.git] / mailinfo.c
index 0265a29a3855902e25e44099663c2973bbe9f53e..ff2d4d403826b035a7bb123dc74a50af9a76e353 100644 (file)
@@ -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);