diff options
author | bertrand <Bertrand.Guiheneuf@inria.fr> | 1999-05-27 05:51:53 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 1999-05-27 05:51:53 +0800 |
commit | 72c4a8deda6f0b0d740c8ba449bced1ac25de4d9 (patch) | |
tree | e94ceb1bb4d3e160f4dd44daa798e692553e7d9e /camel/camel-mime-part.c | |
parent | fa1d50623855f58ed95fba1f468d872a9e84e4d2 (diff) | |
download | gsoc2013-evolution-72c4a8deda6f0b0d740c8ba449bced1ac25de4d9.tar.gz 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-part.c')
-rw-r--r-- | camel/camel-mime-part.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c index 02932214b9..7be15d20fe 100644 --- a/camel/camel-mime-part.c +++ b/camel/camel-mime-part.c @@ -1,8 +1,6 @@ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* camelMimePart.c : Abstract class for a mime_part */ -/** THIS IS MOSTLY AN ABSTRACT CLASS THAT SHOULD HAVE BEEN AN - INTERFACE. **/ /* * @@ -485,6 +483,9 @@ _write_content_to_file (CamelMimePart *mime_part, FILE *file) } + + + static void _write_to_file(CamelDataWrapper *data_wrapper, FILE *file) { @@ -495,6 +496,8 @@ _write_to_file(CamelDataWrapper *data_wrapper, FILE *file) WHPTF (file, "Content-Description", mp->description); WHPTF (file, "Content-MD5", mp->content_MD5); WHPTF (file, "Content-id", mp->content_id); + write_header_with_glist_to_file (file, "Content-Language", mp->content_languages); + write_header_table_to_file (file, mp->headers); fprintf(file,"\n"); if (mp->content) camel_data_wrapper_write_to_file (mp->content, file); |