From f294d68a43d127f308981b622c3ef29dbf9d2317 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Fri, 10 Dec 2010 18:14:40 +0100 Subject: [PATCH] Mimeparser bugfix; if we continue we must flush the already parsed headers too. --- libcitadel/lib/mime_parser.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.30.2