From e39d94c5ef8d88c726a29f2cfa994a6a0d90be5a Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 10 Jul 2001 22:06:56 +0000 Subject: New function to parse an HTML meta-tag. 2001-07-10 Jeffrey Stedfast * camel-mime-utils.c (html_meta_param_list_decode): New function to parse an HTML meta-tag. * camel-mime-part-utils.c (simple_data_wrapper_construct_from_parser): If the Content-Type did not contain a charset parameter and it's also a text/html part, we have 1 last place to look - in the META html tags. *sigh* * camel-mime-message.c (camel_mime_message_get_source): s/gint/unsigned since that's what it should be. svn path=/trunk/; revision=10976 --- camel/camel-mime-utils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'camel/camel-mime-utils.h') diff --git a/camel/camel-mime-utils.h b/camel/camel-mime-utils.h index c32485d000..d057b91936 100644 --- a/camel/camel-mime-utils.h +++ b/camel/camel-mime-utils.h @@ -109,6 +109,9 @@ void header_param_list_format_append(GString *out, struct _header_param *p); char *header_param_list_format(struct _header_param *p); void header_param_list_free(struct _header_param *p); +/* for decoding META tags in text/html stuff */ +struct _header_param *html_meta_param_list_decode (const char *in, int inlen); + /* Content-Type header */ struct _header_content_type *header_content_type_new(const char *type, const char *subtype); struct _header_content_type *header_content_type_decode(const char *in); -- cgit v1.2.3