X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;ds=sidebyside;f=lib%2Findex.cc;h=418224880a2ff9a9b9dc565e9182a8a9538097c1;hb=6682b4e686b7972883626c9b0f941ae4bf02dedb;hp=f21761d0c3d74133a676d082f7b1da01d3365a39;hpb=b7ac4c05e118047442378f58eeb69d43bd1cbdb1;p=notmuch diff --git a/lib/index.cc b/lib/index.cc index f21761d0..41822488 100644 --- a/lib/index.cc +++ b/lib/index.cc @@ -357,7 +357,7 @@ _index_content_type (notmuch_message_t *message, GMimeObject *part) { GMimeContentType *content_type = g_mime_object_get_content_type (part); if (content_type) { - char *mime_string = g_mime_content_type_to_string (content_type); + char *mime_string = g_mime_content_type_get_mime_type (content_type); if (mime_string) { _notmuch_message_gen_terms (message, "mimetype", mime_string); g_free (mime_string); @@ -493,7 +493,7 @@ _index_mime_part (notmuch_message_t *message, } } - wrapper = g_mime_part_get_content_object (GMIME_PART (part)); + wrapper = g_mime_part_get_content (GMIME_PART (part)); if (wrapper) g_mime_data_wrapper_write_to_stream (wrapper, filter);