From f926f10e86aee8df632613d9c5b5022e6b8597ca Mon Sep 17 00:00:00 2001 From: bertrand Date: Wed, 16 Feb 2000 10:44:35 +0000 Subject: this routine replaces the _read_part routine and does not store the part 2000-02-15 bertrand * camel/camel-multipart.c (_localize_part): this routine replaces the _read_part routine and does not store the part in a buffer. (_set_input_stream): use the set_input_stream instead of the construct_from_stream. each bodypart is given an input stream. * camel/camel-mime-part-utils.c: include the data-wrapper-repository header. (camel_mime_part_construct_content_from_stream): use the set_input_stream instead of the construct_from_stream method. * camel/camel-seekable-substream.c (_set_bounds): cur position is set to 0 not to inf_bound. Sync svn path=/trunk/; revision=1790 --- camel/camel-mime-part.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'camel/camel-mime-part.c') diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c index 29e39f4386..0328ac8115 100644 --- a/camel/camel-mime-part.c +++ b/camel/camel-mime-part.c @@ -605,12 +605,9 @@ _get_content_object (CamelMedium *medium) CamelStream *stream; CAMEL_LOG_FULL_DEBUG ("CamelMimePart::get_content_object entering\n"); - /* - * test if there is not pending content stored in the - * temporary buffer - */ + if (!medium->content ) { - stream = camel_data_wrapper_get_input_stream (CAMEL_DATA_WRAPPER (medium)); + stream = mime_part->content_input_stream; camel_mime_part_construct_content_from_stream (mime_part, stream); @@ -795,7 +792,7 @@ _parse_header_pair (CamelMimePart *mime_part, gchar *header_name, gchar *header_ -#if 0 + static void _construct_from_stream (CamelDataWrapper *data_wrapper, CamelStream *stream) { @@ -810,7 +807,6 @@ _construct_from_stream (CamelDataWrapper *data_wrapper, CamelStream *stream) } -#endif -- cgit v1.2.3