From af35d99587599042f7521aa761dc511a166df3cf Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 2 Jan 2001 19:33:34 +0000 Subject: New function to return just foo/bar with no parameters. * camel-mime-utils.c (header_content_type_simple): New function to return just foo/bar with no parameters. * camel-data-wrapper.c (get_mime_type): Use header_content_type_simple rather than header_content_type_format. svn path=/trunk/; revision=7213 --- camel/camel-mime-utils.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'camel/camel-mime-utils.c') diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index e2264159bc..c5616ca05c 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -2463,6 +2463,12 @@ header_content_type_format(struct _header_content_type *ct) return ret; } +char * +header_content_type_simple(struct _header_content_type *ct) +{ + return g_strdup_printf("%s/%s", ct->type, ct->subtype); +} + char * header_content_encoding_decode(const char *in) { -- cgit