diff options
author | nobody <nobody@localhost> | 2000-04-19 17:50:35 +0800 |
---|---|---|
committer | nobody <nobody@localhost> | 2000-04-19 17:50:35 +0800 |
commit | 17c0e71bc773de276bd37d1f17c467bfbb0ca198 (patch) | |
tree | 0bded5f4fdc715c91225d3c94fdb9e5cf5eef453 /tests/test2.c | |
parent | f3a84bec06a82e86b7903d01e13589d0fcf4a2bc (diff) | |
download | gsoc2013-evolution-EOG_0_3.tar gsoc2013-evolution-EOG_0_3.tar.gz gsoc2013-evolution-EOG_0_3.tar.bz2 gsoc2013-evolution-EOG_0_3.tar.lz gsoc2013-evolution-EOG_0_3.tar.xz gsoc2013-evolution-EOG_0_3.tar.zst gsoc2013-evolution-EOG_0_3.zip |
This commit was manufactured by cvs2svn to create tag 'EOG_0_3'.EOG_0_3
svn path=/tags/EOG_0_3/; revision=2496
Diffstat (limited to 'tests/test2.c')
-rw-r--r-- | tests/test2.c | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/tests/test2.c b/tests/test2.c deleted file mode 100644 index 510c8304d6..0000000000 --- a/tests/test2.c +++ /dev/null @@ -1,49 +0,0 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ -/* tests mime message file parsing */ -#include "gmime-utils.h" -#include "stdio.h" -#include "camel-mime-message.h" -#include "camel-mime-part.h" -#include "camel-stream.h" -#include "camel-stream-fs.h" -#include "camel.h" - -int -main (int argc, char**argv) -{ - GHashTable *header_table; - CamelMimeMessage *message; - CamelStream *input_stream, *output_stream; - - gtk_init (&argc, &argv); - camel_init (); - - message = camel_mime_message_new (); - - - input_stream = camel_stream_fs_new_with_name ("mail.test", CAMEL_STREAM_FS_READ); - if (!input_stream) { - perror ("could not open input file\n"); - printf ("You must create the file mail.test before running this test\n"); - exit(2); - } - - - camel_data_wrapper_set_input_stream ( CAMEL_DATA_WRAPPER (message), input_stream); - - camel_medium_get_content_object (CAMEL_MEDIUM (message)); - -#if 0 - camel_stream_close (input_stream); - gtk_object_unref (GTK_OBJECT (input_stream)); - - output_stream = camel_stream_fs_new_with_name ("mail2.test", CAMEL_STREAM_FS_WRITE); - camel_data_wrapper_write_to_stream (CAMEL_DATA_WRAPPER (message), output_stream); - camel_stream_close (output_stream); - gtk_object_unref (GTK_OBJECT (output_stream)); - - //gtk_object_unref (GTK_OBJECT (message)); -#endif - return 0; - -} |