diff options
author | Dan Winship <danw@src.gnome.org> | 2001-01-03 03:33:34 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-01-03 03:33:34 +0800 |
commit | af35d99587599042f7521aa761dc511a166df3cf (patch) | |
tree | 91cd80c4180c3b8385823ddc58f9884751374f0c /camel/camel-mime-utils.c | |
parent | 81d69ae252c95ee51a80e5681d504876bd199de7 (diff) | |
download | gsoc2013-evolution-af35d99587599042f7521aa761dc511a166df3cf.tar gsoc2013-evolution-af35d99587599042f7521aa761dc511a166df3cf.tar.gz gsoc2013-evolution-af35d99587599042f7521aa761dc511a166df3cf.tar.bz2 gsoc2013-evolution-af35d99587599042f7521aa761dc511a166df3cf.tar.lz gsoc2013-evolution-af35d99587599042f7521aa761dc511a166df3cf.tar.xz gsoc2013-evolution-af35d99587599042f7521aa761dc511a166df3cf.tar.zst gsoc2013-evolution-af35d99587599042f7521aa761dc511a166df3cf.zip |
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
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r-- | camel/camel-mime-utils.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 @@ -2464,6 +2464,12 @@ header_content_type_format(struct _header_content_type *ct) } 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) { if (in) |