projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c60ebc
)
* ignore content-length headers, since they tend to lie at us
author
Wilfried Göesgens
<willi@citadel.org>
Tue, 13 May 2008 22:15:33 +0000
(22:15 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Tue, 13 May 2008 22:15:33 +0000
(22:15 +0000)
libcitadel/lib/mime_parser.c
patch
|
blob
|
history
diff --git
a/libcitadel/lib/mime_parser.c
b/libcitadel/lib/mime_parser.c
index b60b18beb63994b8d2722dc77550f789b76d5a1f..f53294c81a7d3acd74a530c8cf5a0d7c99c939f6 100644
(file)
--- 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