From 5b2d590c1f8dcb055712e00f461dd59fe5b80914 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Tue, 13 May 2008 22:15:33 +0000 Subject: [PATCH] * ignore content-length headers, since they tend to lie at us --- libcitadel/lib/mime_parser.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libcitadel/lib/mime_parser.c b/libcitadel/lib/mime_parser.c index b60b18beb..f53294c81 100644 --- a/libcitadel/lib/mime_parser.c +++ b/libcitadel/lib/mime_parser.c @@ -502,9 +502,13 @@ void the_mime_parser(char *partnum, ******/ /* Truncate if the header told us to */ + /* Content length headers tend to be wrong since mails + * gain/loose linefeeds/QP all over their way + * so, we ignore the size for now and trust our own calculation. if ( (content_length > 0) && (length > content_length) ) { length = content_length; } + */ /* Sometimes the "name" field is tacked on to Content-type, * and sometimes it's tacked on to Content-disposition. Use -- 2.39.2