From: Wilfried Goesgens Date: Fri, 10 Dec 2010 17:14:40 +0000 (+0100) Subject: Mimeparser bugfix; if we continue we must flush the already parsed headers too. X-Git-Tag: v8.01~527^2~1 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=f294d68a43d127f308981b622c3ef29dbf9d2317 Mimeparser bugfix; if we continue we must flush the already parsed headers too. --- diff --git a/libcitadel/lib/mime_parser.c b/libcitadel/lib/mime_parser.c index 56336ba6a..e6d65e9f4 100644 --- a/libcitadel/lib/mime_parser.c +++ b/libcitadel/lib/mime_parser.c @@ -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;