aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-multipart.c
diff options
context:
space:
mode:
authorbertrand <Bertrand.Guiheneuf@aful.org>2000-02-17 23:19:04 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>2000-02-17 23:19:04 +0800
commitb39cda14b7678b925a6e3e645b60fb9858fdfaf6 (patch)
treedec02fd77a7f312b4cd4ea8d63abb90fdfa4cd14 /camel/camel-multipart.c
parentcf16aa4fb112337616d20f4f2f9c2512cbe5e82f (diff)
downloadgsoc2013-evolution-b39cda14b7678b925a6e3e645b60fb9858fdfaf6.tar
gsoc2013-evolution-b39cda14b7678b925a6e3e645b60fb9858fdfaf6.tar.gz
gsoc2013-evolution-b39cda14b7678b925a6e3e645b60fb9858fdfaf6.tar.bz2
gsoc2013-evolution-b39cda14b7678b925a6e3e645b60fb9858fdfaf6.tar.lz
gsoc2013-evolution-b39cda14b7678b925a6e3e645b60fb9858fdfaf6.tar.xz
gsoc2013-evolution-b39cda14b7678b925a6e3e645b60fb9858fdfaf6.tar.zst
gsoc2013-evolution-b39cda14b7678b925a6e3e645b60fb9858fdfaf6.zip
revamped so that it uses the output stream of the data wrapper
2000-02-17 bertrand <Bertrand.Guiheneuf@aful.org> * camel/camel-formatter.c (handle_text_plain): revamped so that it uses the output stream of the data wrapper (handle_text_html): ditto. * camel/camel-simple-data-wrapper.h: * camel/camel-simple-data-wrapper.c (camel_simple_data_wrapper_new): use (void) instead of (). (_get_output_stream): simple implementation. A lot of small fixes so that the new parser scheme works properly. Simple implementation of the stream though. Changed vette-formatter files so that they work with the new scheme. The new parser is now in a usable state. Still needs some work but the infrastructure is here. /me is happy. svn path=/trunk/; revision=1822
Diffstat (limited to 'camel/camel-multipart.c')
-rw-r--r--camel/camel-multipart.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/camel/camel-multipart.c b/camel/camel-multipart.c
index 0a2f488f31..ce22128835 100644
--- a/camel/camel-multipart.c
+++ b/camel/camel-multipart.c
@@ -503,6 +503,10 @@ _set_input_stream (CamelDataWrapper *data_wrapper, CamelStream *stream)
CAMEL_LOG_FULL_DEBUG ("Entering CamelMultipart::_set_input_stream\n");
+
+ /* call parent class implementation */
+ parent_class->set_input_stream (data_wrapper, stream);
+
boundary = camel_multipart_get_boundary (multipart);
g_return_if_fail (boundary);
@@ -535,6 +539,9 @@ _set_input_stream (CamelDataWrapper *data_wrapper, CamelStream *stream)
camel_seekable_substream_new_with_seekable_stream_and_bounds (seekable_stream,
part_begining,
part_end);
+ CAMEL_LOG_FULL_DEBUG ("CamelMultipart::set_input_stream, use a substream,\n"
+ "\tbegining = %d\n"
+ "\tend = %d\n",part_begining, part_end);
/* the seekable substream may change the position of the stream
so we must save it before calling set_input_stream */
@@ -542,6 +549,8 @@ _set_input_stream (CamelDataWrapper *data_wrapper, CamelStream *stream)
camel_data_wrapper_set_input_stream (CAMEL_DATA_WRAPPER (body_part),
CAMEL_STREAM (body_part_input_stream));
+ CAMEL_LOG_FULL_DEBUG ("CamelMultipart::set_input_stream,"
+ "new body part has input stream : %p\n", body_part_input_stream);
/* restore the stream position */
camel_seekable_stream_seek (seekable_stream, saved_stream_pos, CAMEL_STREAM_SET);