diff options
author | Dan Winship <danw@src.gnome.org> | 2000-12-29 03:28:39 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-12-29 03:28:39 +0800 |
commit | 156996ac5eaaddea369e4ae001c06c45f5ad76f4 (patch) | |
tree | 4d6f8c6714002dfe6baf2717980bf9530a3c2fb2 /camel/camel-mime-message.c | |
parent | 1351da8fd7d1207e79cc811f300f3ccbc68ce3c7 (diff) | |
download | gsoc2013-evolution-156996ac5eaaddea369e4ae001c06c45f5ad76f4.tar gsoc2013-evolution-156996ac5eaaddea369e4ae001c06c45f5ad76f4.tar.gz gsoc2013-evolution-156996ac5eaaddea369e4ae001c06c45f5ad76f4.tar.bz2 gsoc2013-evolution-156996ac5eaaddea369e4ae001c06c45f5ad76f4.tar.lz gsoc2013-evolution-156996ac5eaaddea369e4ae001c06c45f5ad76f4.tar.xz gsoc2013-evolution-156996ac5eaaddea369e4ae001c06c45f5ad76f4.tar.zst gsoc2013-evolution-156996ac5eaaddea369e4ae001c06c45f5ad76f4.zip |
Remove this. It was only a thin wrapper around struct _header_content_type
* gmime-content-field.[ch]: Remove this. It was only a thin
wrapper around struct _header_content_type anyway, and didn't
match the naming scheme of anything else.
* Makefile.am: Remove gmime-content-field.[ch]
* camel.h: Remove gmime-content-field.h
* camel-types.h: Add CamelContentType as a typedef for struct
_header_content_type (especially for use outside of camel).
* camel-multipart.c:
* camel-mime-part.c:
* camel-mime-message.c:
* camel-folder-summary.c:
* camel-folder-search.c:
* camel-data-wrapper.[ch]: Use CamelContentType and
header_content_type_* functions rather than the GMime stuff.
* camel-mime-part-utils.c:
* camel-medium.c: Remove unused gmime-content-field.h include.
svn path=/trunk/; revision=7186
Diffstat (limited to 'camel/camel-mime-message.c')
-rw-r--r-- | camel/camel-mime-message.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c index 4851771e43..40199eac21 100644 --- a/camel/camel-mime-message.c +++ b/camel/camel-mime-message.c @@ -28,7 +28,6 @@ #include "camel-mime-message.h" #include "camel-multipart.h" -#include "gmime-content-field.h" #include "camel-stream-mem.h" #include "string-utils.h" #include "hash-table-utils.h" @@ -602,7 +601,7 @@ find_best_encoding(CamelMimePart *part, CamelBestencRequired required, CamelBest return CAMEL_MIME_PART_ENCODING_DEFAULT; } - istext = gmime_content_field_is_type(part->content_type, "text", "*"); + istext = header_content_type_is(part->content_type, "text", "*"); if (istext) { flags = CAMEL_BESTENC_GET_CHARSET|CAMEL_BESTENC_GET_ENCODING; } else { @@ -621,7 +620,7 @@ find_best_encoding(CamelMimePart *part, CamelBestencRequired required, CamelBest /* if we're not looking for the best charset, then use the one we have */ if (istext && (required & CAMEL_BESTENC_GET_CHARSET) == 0 - && (charsetin = gmime_content_field_get_parameter(part->content_type, "charset"))) { + && (charsetin = header_content_type_param(part->content_type, "charset"))) { /* if libunicode doesn't support it, we dont really have utf8 anyway, so we dont need a converter */ charenc = camel_mime_filter_charset_new_convert("UTF-8", charsetin); @@ -716,12 +715,12 @@ best_encoding(CamelMimeMessage *msg, CamelMimePart *part, void *datap) camel_mime_part_set_encoding(part, encoding); if ((data->required & CAMEL_BESTENC_GET_CHARSET) != 0) { - if (gmime_content_field_is_type(part->content_type, "text", "*")) { + if (header_content_type_is(part->content_type, "text", "*")) { char *newct; /* FIXME: ick, the part content_type interface needs fixing bigtime */ - gmime_content_field_set_parameter(part->content_type, "charset", charset?charset:"us-ascii"); - newct = header_content_type_format(part->content_type->content_type); + header_content_type_set_param(part->content_type, "charset", charset?charset:"us-ascii"); + newct = header_content_type_format(part->content_type); if (newct) { d(printf("Setting content-type to %s\n", newct)); |