aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test1.c
diff options
context:
space:
mode:
authorbertrand <Bertrand.Guiheneuf@inria.fr>1999-05-27 05:51:53 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-05-27 05:51:53 +0800
commit72c4a8deda6f0b0d740c8ba449bced1ac25de4d9 (patch)
treee94ceb1bb4d3e160f4dd44daa798e692553e7d9e /tests/test1.c
parentfa1d50623855f58ed95fba1f468d872a9e84e4d2 (diff)
downloadgsoc2013-evolution-72c4a8deda6f0b0d740c8ba449bced1ac25de4d9.tar
gsoc2013-evolution-72c4a8deda6f0b0d740c8ba449bced1ac25de4d9.tar.gz
gsoc2013-evolution-72c4a8deda6f0b0d740c8ba449bced1ac25de4d9.tar.bz2
gsoc2013-evolution-72c4a8deda6f0b0d740c8ba449bced1ac25de4d9.tar.lz
gsoc2013-evolution-72c4a8deda6f0b0d740c8ba449bced1ac25de4d9.tar.xz
gsoc2013-evolution-72c4a8deda6f0b0d740c8ba449bced1ac25de4d9.tar.zst
gsoc2013-evolution-72c4a8deda6f0b0d740c8ba449bced1ac25de4d9.zip
new func. Parses message header zone and returns a Glist of all header
1999-05-26 bertrand <Bertrand.Guiheneuf@inria.fr> * camel/gmime-utils.c (get_header_lines_from_file): new func. Parses message header zone and returns a Glist of all header lines. * tests/test2.c: tests message parsing * camel/gmime-utils.c (write_header_table_to_file): new func to write a table of headers. svn path=/trunk/; revision=948
Diffstat (limited to 'tests/test1.c')
-rw-r--r--tests/test1.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test1.c b/tests/test1.c
index f75d9046ca..013f9e72bf 100644
--- a/tests/test1.c
+++ b/tests/test1.c
@@ -11,6 +11,10 @@ main (int argc, char**argv)
gtk_init (&argc, &argv);
message = camel_mime_message_new_with_session( (CamelSession *)NULL);
camel_mime_part_set_description (CAMEL_MIME_PART (message), g_string_new ("a test"));
+ camel_mime_part_add_header (CAMEL_MIME_PART (message), g_string_new ("X-test1"), g_string_new ("the value of a test"));
+ camel_mime_part_add_header (CAMEL_MIME_PART (message), g_string_new ("X-test2"), g_string_new ("the value of another test"));
+ /*camel_mime_part_add_content_language (CAMEL_MIME_PART (message), g_string_new ("es-ca"));*/
+
camel_mime_message_set_received_date (message, g_string_new ("Thu, 20 May 1999, 10:39:14 +0200"));
camel_mime_message_set_subject (message, g_string_new ("A test message"));
camel_mime_message_set_reply_to (message, g_string_new ("toto@toto.com"));
@@ -19,12 +23,9 @@ main (int argc, char**argv)
camel_mime_message_add_recipient (message, g_string_new (RECIPIENT_TYPE_TO), g_string_new ("franck.dechamps@alseve.fr"));
camel_mime_message_add_recipient (message, g_string_new (RECIPIENT_TYPE_TO), g_string_new ("mc@alseve.fr"));
camel_mime_message_add_recipient (message, g_string_new (RECIPIENT_TYPE_TO), g_string_new ("richard.lengagne@inria.fr"));
-
camel_mime_message_add_recipient (message, g_string_new (RECIPIENT_TYPE_CC), g_string_new ("Francois.fleuret@inria.fr"));
camel_mime_message_add_recipient (message, g_string_new (RECIPIENT_TYPE_CC), g_string_new ("maury@justmagic.com"));
-
camel_mime_message_add_recipient (message, g_string_new (RECIPIENT_TYPE_BCC), g_string_new ("guiheneu@aful.org"));
-
output_file = fopen ("mail.test", "w");
if (!output_file) {