diff options
author | bertrand <Bertrand.Guiheneuf@inria.fr> | 1999-06-22 22:19:24 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 1999-06-22 22:19:24 +0800 |
commit | 5deed2f193e7ab91f159f1a764b78578861044cd (patch) | |
tree | 78830536944b4a030673a5cb43339aaef65e1112 /camel/camel-mime-part.h | |
parent | 4f689d0fb8e33e91fec8b8e0471d48f1e6993622 (diff) | |
download | gsoc2013-evolution-5deed2f193e7ab91f159f1a764b78578861044cd.tar.gz gsoc2013-evolution-5deed2f193e7ab91f159f1a764b78578861044cd.tar.zst gsoc2013-evolution-5deed2f193e7ab91f159f1a764b78578861044cd.zip |
new function, returns "type/subtype" mime type string.
* camel/gmime-content-field.c (gmime_content_field_get_mime_type):
new function, returns "type/subtype" mime type string.
(gmime_content_field_construct_from_string):
new function, construbt a content_field object
form a string. be used to set the mime_type from a
string.
* camel/camel-mime-part.c (_set_content_type):
(camel_mime_part_set_content_type):
(_get_content_type):
(_get_content_type):
new methods.
1999-06-21 bertrand <Bertrand.Guiheneuf@inria.fr>
* camel/gmime-utils.c (get_header_table_from_stream):
replace CR/LF+'\t' with ' '
* camel/camel-mime-message.c (_set_recipient_list_from_string):
trim \t when splitting
* camel/gmime-utils.c (get_header_table_from_file):
corrected bug in scanning tabulations ('t' -> '\t')
* tests/test2.c (main): read mail.test instead
of mail1.test
* camel/camel-mime-part.c (_add_header):
added comments
svn path=/trunk/; revision=984
Diffstat (limited to 'camel/camel-mime-part.h')
-rw-r--r-- | camel/camel-mime-part.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/camel/camel-mime-part.h b/camel/camel-mime-part.h index 87ed6e7a4f..8ab5fc152c 100644 --- a/camel/camel-mime-part.h +++ b/camel/camel-mime-part.h @@ -58,6 +58,7 @@ typedef struct GString *encoding; GString *filename; GList *header_lines; + GMimeContentField *content_type_field; CamelDataWrapper *content; /* part real content */ @@ -88,6 +89,9 @@ typedef struct { GList * (*get_content_languages) (CamelMimePart *mime_part); void (*set_header_lines) (CamelMimePart *mime_part, GList *header_lines); GList * (*get_header_lines) (CamelMimePart *mime_part); + void (*set_content_type) (CamelMimePart *mime_part, GString *content_type); + GString * (*get_content_type) (CamelMimePart *mime_part); + gboolean (*parse_header_pair) (CamelMimePart *mime_part, GString *header_name, GString *header_value); CamelDataWrapper * (*get_content_object) (CamelMimePart *mime_part); @@ -117,6 +121,8 @@ void camel_mime_part_set_content_languages (CamelMimePart *mime_part, GList *con GList *camel_mime_part_get_content_languages (CamelMimePart *mime_part); void camel_mime_part_set_header_lines (CamelMimePart *mime_part, GList *header_lines); GList *camel_mime_part_get_header_lines (CamelMimePart *mime_part); +void camel_mime_part_set_content_type (CamelMimePart *mime_part, GString *content_type); +static GString *camel_mime_part_get_content_type (CamelMimePart *mime_part); #ifdef __cplusplus } |