aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-message.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 /camel/camel-mime-message.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 'camel/camel-mime-message.c')
-rw-r--r--camel/camel-mime-message.c24
1 files changed, 3 insertions, 21 deletions
diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c
index 270cbcc5ef..13d8f30f8c 100644
--- a/camel/camel-mime-message.c
+++ b/camel/camel-mime-message.c
@@ -495,28 +495,10 @@ _write_one_recipient_to_file (gpointer key, gpointer value, gpointer user_data)
{
GString *recipient_type = (GString *)key;
GList *recipients = (GList *)value;
- GString *current;
+ // GString *current;
FILE *file = (FILE *)user_data;
-
- if ( (recipient_type) && (recipient_type->str) &&
- (recipients) )
- {
- gboolean first;
-
- fprintf(file, "%s: ", recipient_type->str);
- first = TRUE;
- while (recipients) {
- current = (GString *)recipients->data;
- if ( (current) && (current->str) ) {
- if (!first) fprintf(file, ", ");
- else first = FALSE;
- fprintf(file, "%s", current->str);
- }
- recipients = g_list_next(recipients);
-
- }
- fprintf(file, "\n");
- }
+ if ( (recipient_type) && (recipient_type->str) )
+ write_header_with_glist_to_file (file, recipient_type->str, recipients);
}
static void