aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-parser.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@HelixCode.com>2000-10-17 17:45:38 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-10-17 17:45:38 +0800
commita8cd947d9bed93078a5edd6a2f483748778422ae (patch)
treeecb7faebf2d79b9c3132cb805533bb951f5604ff /camel/camel-mime-parser.c
parent97be61b4787ccb3b52a34e625cb5f49c67ace6fe (diff)
downloadgsoc2013-evolution-a8cd947d9bed93078a5edd6a2f483748778422ae.tar
gsoc2013-evolution-a8cd947d9bed93078a5edd6a2f483748778422ae.tar.gz
gsoc2013-evolution-a8cd947d9bed93078a5edd6a2f483748778422ae.tar.bz2
gsoc2013-evolution-a8cd947d9bed93078a5edd6a2f483748778422ae.tar.lz
gsoc2013-evolution-a8cd947d9bed93078a5edd6a2f483748778422ae.tar.xz
gsoc2013-evolution-a8cd947d9bed93078a5edd6a2f483748778422ae.tar.zst
gsoc2013-evolution-a8cd947d9bed93078a5edd6a2f483748778422ae.zip
Added some malloc check debugging stuff.
2000-10-17 Not Zed <NotZed@HelixCode.com> * camel-mime-filter.c: Added some malloc check debugging stuff. * camel-mime-parser.c (struct _header_scan_state): Removed top_part, top_start, and pending. I can't even remember why they were there, and they're not used anymore. * camel-mime-filter-basic.c (filter): Forgot to up the space here too. 2000-10-14 Not Zed <NotZed@HelixCode.com> * camel-mime-filter-basic.c (complete): Ok, so we hit a fixme, 3x just wasn't enough for some sequences. svn path=/trunk/; revision=5962
Diffstat (limited to 'camel/camel-mime-parser.c')
-rw-r--r--camel/camel-mime-parser.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/camel/camel-mime-parser.c b/camel/camel-mime-parser.c
index d992af1778..b1c4338760 100644
--- a/camel/camel-mime-parser.c
+++ b/camel/camel-mime-parser.c
@@ -20,6 +20,11 @@
/* What should hopefully be a fast mail parser */
+/* Do not change this code without asking me (Michael Zucchi) first
+
+ There is almost always a reason something was done a certain way.
+ */
+
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
@@ -228,11 +233,6 @@ struct _header_scan_state {
int header_start; /* start of last header, or -1 */
- struct _header_scan_stack *top_part; /* top of message header */
- int top_start; /* offset of start */
-
- struct _header_scan_stack *pending; /* if we're pending part info, from the wrong part end */
-
/* filters to apply to all content before output */
int filterid; /* id of next filter */
struct _header_scan_filter *filters;
@@ -1576,12 +1576,12 @@ tail_recurse:
do {
hb = folder_scan_content (s, &state, databuffer, datalength);
+ d(printf ("Content raw: '%.*s'\n", *datalength, *databuffer));
+
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;
@@ -1589,12 +1589,12 @@ tail_recurse:
} while (hb == h && *datalength > 0);
/* check for any filter completion data */
- while (f) {
- if (*datalength > 0) {
- camel_mime_filter_filter (f->filter, *databuffer, *datalength, presize,
- databuffer, datalength, &presize);
+ if (*datalength > 0) {
+ while (f) {
+ camel_mime_filter_filter(f->filter, *databuffer, *datalength, presize,
+ databuffer, datalength, &presize);
+ f = f->next;
}
- f = f->next;
}
if (*datalength > 0)
return;