* ignore content-length headers, since they tend to lie at us
authorWilfried Göesgens <willi@citadel.org>
Tue, 13 May 2008 22:15:33 +0000 (22:15 +0000)
committerWilfried Göesgens <willi@citadel.org>
Tue, 13 May 2008 22:15:33 +0000 (22:15 +0000)
libcitadel/lib/mime_parser.c

index b60b18beb63994b8d2722dc77550f789b76d5a1f..f53294c81a7d3acd74a530c8cf5a0d7c99c939f6 100644 (file)
@@ -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