From: Wilfried Göesgens Date: Tue, 13 May 2008 22:15:33 +0000 (+0000) Subject: * ignore content-length headers, since they tend to lie at us X-Git-Tag: v7.86~2260 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;ds=sidebyside;h=5b2d590c1f8dcb055712e00f461dd59fe5b80914;p=citadel.git * ignore content-length headers, since they tend to lie at us --- 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