aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-mime-parser.c')
-rw-r--r--camel/camel-mime-parser.c32
1 files changed, 17 insertions, 15 deletions
diff --git a/camel/camel-mime-parser.c b/camel/camel-mime-parser.c
index 9599e5bde2..0926748504 100644
--- a/camel/camel-mime-parser.c
+++ b/camel/camel-mime-parser.c
@@ -1563,42 +1563,44 @@ tail_recurse:
folder_push_part(s, h);
s->state = type;
return;
-
+
case HSCAN_HEADER:
s->state = HSCAN_BODY;
-
+
case HSCAN_BODY:
h = s->parts;
*datalength = 0;
presize = SCAN_HEAD;
f = s->filters;
-
+
do {
- hb = folder_scan_content(s, &state, databuffer, datalength);
- if (*datalength>0) {
- d(printf("Content raw: '%.*s'\n", *datalength, *databuffer));
-
+ hb = folder_scan_content (s, &state, databuffer, datalength);
+ if (*datalength > 0) {
+ d(printf ("Content raw: '%.*s'\n", *datalength, *databuffer));
+
while (f) {
- camel_mime_filter_filter(f->filter, *databuffer, *datalength, presize,
- databuffer, datalength, &presize);
+ camel_mime_filter_filter (f->filter, *databuffer, *datalength, presize,
+ databuffer, datalength, &presize);
f = f->next;
}
return;
}
- } while (hb==h && *datalength>0);
-
+ } while (hb == h && *datalength > 0);
+
/* check for any filter completion data */
while (f) {
- camel_mime_filter_filter(f->filter, *databuffer, *datalength, presize,
- databuffer, datalength, &presize);
+ if (*datalength > 0) {
+ camel_mime_filter_filter (f->filter, *databuffer, *datalength, presize,
+ databuffer, datalength, &presize);
+ }
f = f->next;
}
if (*datalength > 0)
return;
-
+
s->state = HSCAN_BODY_END;
break;
-
+
case HSCAN_MULTIPART:
h = s->parts;
do {