aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-part.c
diff options
context:
space:
mode:
authorbertrand <Bertrand.Guiheneuf@aful.org>1999-08-29 23:57:47 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-08-29 23:57:47 +0800
commit68a9dad22b742e3034eea24a57a0e7fad3356201 (patch)
tree852a65e1a2c0ab0a8d507bcdc8bba64bf2765be1 /camel/camel-mime-part.c
parente826255bf13255f2b5c626192de4fd10a3885b6f (diff)
downloadgsoc2013-evolution-68a9dad22b742e3034eea24a57a0e7fad3356201.tar
gsoc2013-evolution-68a9dad22b742e3034eea24a57a0e7fad3356201.tar.gz
gsoc2013-evolution-68a9dad22b742e3034eea24a57a0e7fad3356201.tar.bz2
gsoc2013-evolution-68a9dad22b742e3034eea24a57a0e7fad3356201.tar.lz
gsoc2013-evolution-68a9dad22b742e3034eea24a57a0e7fad3356201.tar.xz
gsoc2013-evolution-68a9dad22b742e3034eea24a57a0e7fad3356201.tar.zst
gsoc2013-evolution-68a9dad22b742e3034eea24a57a0e7fad3356201.zip
text parameter declared const
1999-08-28 bertrand <Bertrand.Guiheneuf@aful.org> * camel/camel-mime-part.c (camel_mime_part_set_text): text parameter declared const * camel/camel-mime-part-utils.c (camel_mime_part_store_stream_in_buffer): actually test correctly nb_bytes_read_chunk is >0 * camel/gstring-util.c: * camel/gmime-content-field.c: * camel/providers/MH/camel-mh-folder.c: * camel/camel-stream-fs.c: include string.h * camel/camel-stream-mem.c (_write): return the numver of written bytes. * camel/camel-stream-buffered-fs.c (_eos): return sthg * camel/camel-stream.c (default_camel_seek): return something. * Started to work on new recipient code. * fixed various leaks. svn path=/trunk/; revision=1146
Diffstat (limited to 'camel/camel-mime-part.c')
-rw-r--r--camel/camel-mime-part.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c
index 8f5255ccb4..c8acb5b4b9 100644
--- a/camel/camel-mime-part.c
+++ b/camel/camel-mime-part.c
@@ -575,11 +575,12 @@ _get_content_object (CamelMedium *medium)
CamelMimePart *mime_part = CAMEL_MIME_PART (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 ) || (mime_part->temp_message_buffer)) {
+ if ((!medium->content ) && (mime_part->temp_message_buffer)) {
stream = camel_stream_mem_new_with_buffer (mime_part->temp_message_buffer,
CAMEL_STREAM_MEM_READ);
camel_mime_part_construct_content_from_stream (mime_part, stream);
@@ -587,8 +588,13 @@ _get_content_object (CamelMedium *medium)
* Beware : this will destroy the temp buffer as well
*/
gtk_object_unref (GTK_OBJECT (stream));
+ } else {
+ CAMEL_LOG_FULL_DEBUG ("CamelMimePart::get_content_object part has a pointer "
+ "to a content object as well as a temp buffer\n");
}
-
+
+ CAMEL_LOG_FULL_DEBUG ("CamelMimePart::get_content_object leaving\n");
+
return parent_class->get_content_object (medium);
}
@@ -758,10 +764,11 @@ _construct_from_stream (CamelDataWrapper *data_wrapper, CamelStream *stream)
CamelMimePart *mime_part = CAMEL_MIME_PART (data_wrapper);
+ CAMEL_LOG_FULL_DEBUG ("CamelMimePart::construct_from_stream entering\n");
camel_mime_part_construct_headers_from_stream (mime_part, stream);
camel_mime_part_store_stream_in_buffer (mime_part, stream);
- CAMEL_LOG_FULL_DEBUG ("CamelMimePart:: Leaving _construct_from_stream\n");
+ CAMEL_LOG_FULL_DEBUG ("CamelMimePart::construct_from_stream leaving\n");
}
@@ -781,7 +788,7 @@ _construct_from_stream (CamelDataWrapper *data_wrapper, CamelStream *stream)
*
**/
void
-camel_mime_part_set_text (CamelMimePart *camel_mime_part, gchar *text)
+camel_mime_part_set_text (CamelMimePart *camel_mime_part, const gchar *text)
{
CamelSimpleDataWrapper *simple_data_wrapper;
CamelMedium *medium = CAMEL_MEDIUM (camel_mime_part);