diff options
author | bertrand <bertrand@helixcode.com> | 2000-02-16 18:44:35 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 2000-02-16 18:44:35 +0800 |
commit | f926f10e86aee8df632613d9c5b5022e6b8597ca (patch) | |
tree | 67361fd4b7f622fe6f660b47f65d65d4877259bd /camel/camel-mime-part.c | |
parent | 0dfd58ef202c72905903b9df0aec462ffbd7441d (diff) | |
download | gsoc2013-evolution-f926f10e86aee8df632613d9c5b5022e6b8597ca.tar.gz gsoc2013-evolution-f926f10e86aee8df632613d9c5b5022e6b8597ca.tar.zst gsoc2013-evolution-f926f10e86aee8df632613d9c5b5022e6b8597ca.zip |
this routine replaces the _read_part routine and does not store the part
2000-02-15 bertrand <bertrand@helixcode.com>
* 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
Diffstat (limited to 'camel/camel-mime-part.c')
-rw-r--r-- | camel/camel-mime-part.c | 10 |
1 files changed, 3 insertions, 7 deletions
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 |