aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test1.c
diff options
context:
space:
mode:
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) {