Mimeparser bugfix; if we continue we must flush the already parsed headers too.
authorWilfried Goesgens <dothebart@citadel.org>
Fri, 10 Dec 2010 17:14:40 +0000 (18:14 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Fri, 10 Dec 2010 17:14:40 +0000 (18:14 +0100)
libcitadel/lib/mime_parser.c

index 56336ba6afe445421a1db9b3cb37c9a47780d7b2..e6d65e9f42be5dfd13bfd392a37e554399df37cf 100644 (file)
@@ -636,8 +636,11 @@ static void recurseable_mime_parser(char *partnum,
                                                        SubMimeHeaders,
                                                        m);
                        if ((next_boundary != NULL) && 
-                           (next_boundary - part_start < 3))
+                           (next_boundary - part_start < 3)) {
+                               FlushInterestingMimes(SubMimeHeaders);
+
                                continue;
+                       }
 
                        if ( (part_start != NULL) && (next_boundary != NULL) ) {
                                part_end = next_boundary;