aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test1.c
diff options
context:
space:
mode:
authorBertrand Guiheneuf <bertrand@src.gnome.org>1999-05-21 05:24:54 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-05-21 05:24:54 +0800
commitbdf895136ea393bd59960623d7cab970900048f7 (patch)
tree6d1f724e51cbaaf4fef4047edf41b61d6df0bc85 /tests/test1.c
parent1cf9ad83368e754a5b8072f3ed820785609eb709 (diff)
downloadgsoc2013-evolution-bdf895136ea393bd59960623d7cab970900048f7.tar.gz
gsoc2013-evolution-bdf895136ea393bd59960623d7cab970900048f7.tar.zst
gsoc2013-evolution-bdf895136ea393bd59960623d7cab970900048f7.zip
recipient list printing
* camel/camel-mime-message.c (_write_to_file): recipient list printing * tests/test1.c (main): more tests. svn path=/trunk/; revision=936
Diffstat (limited to 'tests/test1.c')
-rw-r--r--tests/test1.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/test1.c b/tests/test1.c
index 7ec4b49145..f75d9046ca 100644
--- a/tests/test1.c
+++ b/tests/test1.c
@@ -15,8 +15,16 @@ main (int argc, char**argv)
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"));
camel_mime_message_set_from (message, g_string_new ("Bertrand.Guiheneuf@inria.fr"));
- camel_mime_message_add_recipient (message, g_string_new ("To"), g_string_new ("franck.dechamps@alseve.fr"));
-
+
+ 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) {