From 5c7fc6df1165a26c7dfca91f9664c4e860856824 Mon Sep 17 00:00:00 2001 From: bertrand Date: Thu, 2 Sep 1999 11:19:40 +0000 Subject: changed decl to fit CRLFunc. (_write_recipients_to_stream): calls 1999-09-02 bertrand * camel/camel-mime-message.c (_write_one_recipient_to_stream): changed decl to fit CRLFunc. (_write_recipients_to_stream): calls camel_recipient_foreach_recipient_type now. * camel/camel-recipient.c (camel_recipient_foreach_recipient_type): new convinience function. Iterate over all recipient types. * camel/gmime-utils.c (gmime_write_header_table_to_stream): s/write_header_table_to_stream/gmime_write_header_table_to_stream/ (gmime_write_header_with_glist_to_stream): s/write_header_with_glist_to_stream/gmime_write_header_with_glist_to_stream/ svn path=/trunk/; revision=1167 --- camel/camel-mime-message.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'camel/camel-mime-message.c') diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c index f26db4b358..edbf61f3d3 100644 --- a/camel/camel-mime-message.c +++ b/camel/camel-mime-message.c @@ -563,20 +563,22 @@ camel_mime_message_get_message_number (CamelMimeMessage *mime_message) #define WHPT gmime_write_header_pair_to_stream static void -_write_one_recipient_to_stream (gpointer key, gpointer value, gpointer user_data) +_write_one_recipient_to_stream (gchar *recipient_type, + GList *recipient_list, + gpointer user_data) { - gchar *recipient_type = (gchar *)key; - GList *recipients = (GList *)value; - // gchar *current; + CamelStream *stream = (CamelStream *)user_data; if (recipient_type) - write_header_with_glist_to_stream (stream, recipient_type, recipients, ", "); + gmime_write_header_with_glist_to_stream (stream, recipient_type, recipient_list, ", "); } static void _write_recipients_to_stream (CamelMimeMessage *mime_message, CamelStream *stream) { - //g_hash_table_foreach (mime_message->recipients, _write_one_recipient_to_stream, (gpointer)stream); + camel_recipient_foreach_recipient_type (mime_message->recipients, + _write_one_recipient_to_stream, + (gpointer)stream); } static void -- cgit