projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82a955f
)
Be more conservative about when not to apply binary searching for the next boundary...
author
Wilfried Goesgens
<dothebart@citadel.org>
Tue, 7 Dec 2010 21:24:49 +0000
(22:24 +0100)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Tue, 7 Dec 2010 21:28:43 +0000
(22:28 +0100)
libcitadel/lib/mime_parser.c
patch
|
blob
|
history
diff --git
a/libcitadel/lib/mime_parser.c
b/libcitadel/lib/mime_parser.c
index e3d04bb0123e24591740c280a61303249084f0df..3b10588b7a3fc2c0413fc89790bca71f0e762690 100644
(file)
--- a/
libcitadel/lib/mime_parser.c
+++ b/
libcitadel/lib/mime_parser.c
@@
-472,11
+472,15
@@
static long parse_MimeHeaders(interesting_mime_headers *m,
static int IsAsciiEncoding(interesting_mime_headers *m)
{
+
if ((m->b[encoding].len != 0) &&
- (strcmp(m->b[encoding].Key, "binary") == 0))
- return 0;
- else
+ (strcasecmp(m->b[encoding].Key, "base64") == 0))
+ return 1;
+ if ((m->b[encoding].len != 0) &&
+ (strcmp(m->b[encoding].Key, "quoted-printable") == 0))
return 1;
+
+ return 0;
}
static char *FindNextContent(char *ptr,