diff options
author | bertrand <bertrand@helixcode.com> | 2000-03-04 06:26:13 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 2000-03-04 06:26:13 +0800 |
commit | 41694524a6b39908c8c7a5e298f252c488416afd (patch) | |
tree | 35a04aefd33893af9d83c872919cca2216167a89 /camel/camel-simple-data-wrapper.c | |
parent | f073038b91db7859f22c240c82226e4741228a7f (diff) | |
download | gsoc2013-evolution-41694524a6b39908c8c7a5e298f252c488416afd.tar gsoc2013-evolution-41694524a6b39908c8c7a5e298f252c488416afd.tar.gz gsoc2013-evolution-41694524a6b39908c8c7a5e298f252c488416afd.tar.bz2 gsoc2013-evolution-41694524a6b39908c8c7a5e298f252c488416afd.tar.lz gsoc2013-evolution-41694524a6b39908c8c7a5e298f252c488416afd.tar.xz gsoc2013-evolution-41694524a6b39908c8c7a5e298f252c488416afd.tar.zst gsoc2013-evolution-41694524a6b39908c8c7a5e298f252c488416afd.zip |
use set_input_stream instead of construct_from_stream to feed the message
2000-03-03 bertrand <bertrand@helixcode.com>
* providers/mbox/camel-mbox-folder.c (_get_message_by_uid):
use set_input_stream instead of construct_from_stream
to feed the message object.
* camel-data-wrapper.c (my_write_to_stream): reset output stream.
(my_set_input_stream): unref the previous input stream.
use the set_output_stream for default behaviour.
(my_set_output_stream): unref previous output stream.
* camel-mime-part.c (my_write_content_to_stream): reset content
object output stream.
mbox provider now also constructs message bodies. I should have looked
here first. damn.
svn path=/trunk/; revision=2030
Diffstat (limited to 'camel/camel-simple-data-wrapper.c')
-rw-r--r-- | camel/camel-simple-data-wrapper.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/camel/camel-simple-data-wrapper.c b/camel/camel-simple-data-wrapper.c index a1822e8bcf..2b603d5ef3 100644 --- a/camel/camel-simple-data-wrapper.c +++ b/camel/camel-simple-data-wrapper.c @@ -138,12 +138,14 @@ my_write_to_stream (CamelDataWrapper *data_wrapper, CamelStream *stream) g_assert (data_wrapper); g_assert (stream); - g_assert (simple_data_wrapper->byte_array); + array = simple_data_wrapper->byte_array; - if (array->len) + if ( array && array->len) camel_stream_write (stream, (gchar *)array->data, array->len); + else + parent_class->write_to_stream (data_wrapper, stream); - CAMEL_LOG_FULL_DEBUG ("CamelSimpleDataWrapper:: Leaving my_write_to_stream\n"); + CAMEL_LOG_FULL_DEBUG ("CamelSimpleDataWrapper:: Leaving my_write_to_stream\n"); } |