From 382308f44a4ab93659f9f54c8dac2c2cc381a471 Mon Sep 17 00:00:00 2001 From: Bertrand Guiheneuf Date: Tue, 3 Aug 1999 13:16:35 +0000 Subject: There is a probleme here. We can not allow mime part content-type field * camel/camel-mime-part.c (_set_content_object): There is a probleme here. We can not allow mime part content-type field and content_object mime-type to be different. I thus chosed to set mime part object content field to be freed (if necessary) and set to be a pointer to content_object mime type field. (_construct_from_stream): set content_object mime type to be the same as mime_part's one. This is necessary because we use _set_content_type. This two things are a bit hackish ansd may need to be redesigned. svn path=/trunk/; revision=1071 --- camel/gmime-content-field.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'camel/gmime-content-field.c') diff --git a/camel/gmime-content-field.c b/camel/gmime-content-field.c index b4c8496083..caa8237290 100644 --- a/camel/gmime-content-field.c +++ b/camel/gmime-content-field.c @@ -126,6 +126,7 @@ gmime_content_field_write_to_stream (GMimeContentField *content_field, CamelStre if (!content_field) return; g_assert (stream); + printf ("Content-field address = %p\n", content_field); if (content_field->type) { camel_stream_write_strings (stream, "Content-Type: ", content_field->type, NULL); if (content_field->subtype) { @@ -134,7 +135,7 @@ gmime_content_field_write_to_stream (GMimeContentField *content_field, CamelStre /* print all parameters */ g_hash_table_foreach (content_field->parameters, _print_parameter, stream); camel_stream_write_string (stream, "\n"); - } + } else CAMEL_LOG_FULL_DEBUG ("GMimeContentField::write_to_stream no mime type found\n"); } /** -- cgit