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/providers/mbox | |
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/providers/mbox')
-rw-r--r-- | camel/providers/mbox/camel-mbox-folder.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/camel/providers/mbox/camel-mbox-folder.c b/camel/providers/mbox/camel-mbox-folder.c index 5b37bee6e7..651580a5ff 100644 --- a/camel/providers/mbox/camel-mbox-folder.c +++ b/camel/providers/mbox/camel-mbox-folder.c @@ -965,7 +965,7 @@ _append_message (CamelFolder *folder, CamelMimeMessage *message, CamelException close (fd2); /* remove the temporary file */ - unlink (tmp_message_filename); + //unlink (tmp_message_filename); /* generate the folder md5 signature */ md5_get_digest_from_file (mbox_folder->folder_file_path, mbox_folder->internal_summary->md5_digest); @@ -1067,7 +1067,9 @@ _get_message_by_uid (CamelFolder *folder, const gchar *uid, CamelException *ex) message = camel_mime_message_new_with_session (camel_service_get_session (CAMEL_SERVICE (parent_store))); - camel_data_wrapper_construct_from_stream (CAMEL_DATA_WRAPPER (message), message_stream); + //camel_data_wrapper_construct_from_stream (CAMEL_DATA_WRAPPER (message), message_stream); + camel_data_wrapper_set_input_stream (CAMEL_DATA_WRAPPER (message), message_stream); + |