Files
evolution/tests/test3.c
bertrand e9c6d8921c 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  <Bertrand.Guiheneuf@aful.org>

	* 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
1999-08-03 10:19:39 +00:00

29 lines
796 B
C

/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#include "camel.h"
int
main (int argc, char**argv)
{
GtkType type;
gtk_init (&argc, &argv);
camel_init ();
printf ("Test 3 : data wrapper repository\n");
printf ("\nMime type : \"multipart\"\n");
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_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_repository_get_data_wrapper_type ("toto/titi");
printf ("Type found %s\n", gtk_type_name (type) );
printf ("Test3 finished\n");
}