From e9c6d8921cce940e590f763a881794323a9e6703 Mon Sep 17 00:00:00 2001 From: bertrand Date: Tue, 3 Aug 1999 10:19:39 +0000 Subject: Multipart Mime message parsing works with plain text parts. Woohooo :)))) Making it work with other types is now just a matter of writing the various data wrappers. And display them will just be a matter of writing the good bonobo components. 1999-08-03 bertrand * camel/camel-simple-data-wrapper.c (_construct_from_stream): more debugging output + nb_bytes_read is now a signed int to avoid bug when eos is encountered. * camel/camel-mime-part.c (_construct_from_stream): sync to data_wrapper_repository function name changes. Use default "text/plain" type when conten-type field is not found. (following RFC 2046 spec). * camel/data-wrapper-repository.c (data_wrapper_repository_set_data_wrapper_type): (data_wrapper_repository_get_data_wrapper_type): change function name prefix (s/data_wrapper/data_wrapper_repository/) * camel/camel-multipart.c (_read_part): add `\n` at eol but not before boundary. * camel/gmime-utils.c (get_header_table_from_stream): correct implementation of end of stream detection. svn path=/trunk/; revision=1070 --- tests/test3.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/test3.c b/tests/test3.c index a210ea3723..b036c190f5 100644 --- a/tests/test3.c +++ b/tests/test3.c @@ -12,15 +12,15 @@ main (int argc, char**argv) printf ("Test 3 : data wrapper repository\n"); printf ("\nMime type : \"multipart\"\n"); - type = data_wrapper_get_data_wrapper_type ("multipart"); + type = data_wrapper_repository_get_data_wrapper_type ("multipart"); printf ("Type found %s\n", gtk_type_name (type) ); printf ("\nMime type : \"multipart/alternative\"\n"); - type = data_wrapper_get_data_wrapper_type ("multipart/alternative"); + type = data_wrapper_repository_get_data_wrapper_type ("multipart/alternative"); printf ("Type found %s\n", gtk_type_name (type) ); printf ("\nMime type : \"toto/titi\"\n"); - type = data_wrapper_get_data_wrapper_type ("toto/titi"); + type = data_wrapper_repository_get_data_wrapper_type ("toto/titi"); printf ("Type found %s\n", gtk_type_name (type) ); printf ("Test3 finished\n"); -- cgit v1.2.3