diff options
author | Bertrand Guiheneuf <bertrand@src.gnome.org> | 1999-05-21 00:37:03 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 1999-05-21 00:37:03 +0800 |
commit | 1cf9ad83368e754a5b8072f3ed820785609eb709 (patch) | |
tree | 5985f6c6444b0bb89df1b99c3787d4d6312c7cc4 | |
parent | 429847f57bdfa7955db50ea9fc9e2cecdb5ab081 (diff) | |
download | gsoc2013-evolution-1cf9ad83368e754a5b8072f3ed820785609eb709.tar gsoc2013-evolution-1cf9ad83368e754a5b8072f3ed820785609eb709.tar.gz gsoc2013-evolution-1cf9ad83368e754a5b8072f3ed820785609eb709.tar.bz2 gsoc2013-evolution-1cf9ad83368e754a5b8072f3ed820785609eb709.tar.lz gsoc2013-evolution-1cf9ad83368e754a5b8072f3ed820785609eb709.tar.xz gsoc2013-evolution-1cf9ad83368e754a5b8072f3ed820785609eb709.tar.zst gsoc2013-evolution-1cf9ad83368e754a5b8072f3ed820785609eb709.zip |
sync
svn path=/trunk/; revision=935
-rw-r--r-- | camel/camel-mime-message.c | 11 | ||||
-rw-r--r-- | tests/test1.c | 8 |
2 files changed, 15 insertions, 4 deletions
diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c index 5f7689eab5..c561b89fee 100644 --- a/camel/camel-mime-message.c +++ b/camel/camel-mime-message.c @@ -491,14 +491,21 @@ camel_mime_message_get_message_number (CamelMimeMessage *mime_message) #define WHPTF gmime_write_header_pair_to_file - +static void +_write_recipients_to_file (CamelDataWrapper *data_wrapper, FILE *file) +{ + +} static void -_write_to_file(CamelDataWrapper *data_wrapper, FILE *file) +_write_to_file (CamelDataWrapper *data_wrapper, FILE *file) { CamelMimeMessage *mm = CAMEL_MIME_MESSAGE (data_wrapper); + WHPTF (file, "From", mm->from); + WHPTF (file, "Reply-To", mm->reply_to); WHPTF (file, "Date", mm->received_date); + WHPTF (file, "Subject", mm->subject); CAMEL_DATA_WRAPPER_CLASS (parent_class)->write_to_file (data_wrapper, file); } diff --git a/tests/test1.c b/tests/test1.c index 90004cfd5c..7ec4b49145 100644 --- a/tests/test1.c +++ b/tests/test1.c @@ -11,8 +11,12 @@ 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_message_set_received_date (message, g_string_new ("a date")); - + 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")); + 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")); + output_file = fopen ("mail.test", "w"); if (!output_file) { |