X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Findex.cc;fp=lib%2Findex.cc;h=3f694387c36c2cc21c1509881f7596e3b7980b14;hp=146a89287f894552a379c7856dacaded3746105c;hb=9088db76d89264b733f6b45e776d8952da237921;hpb=8a1eeecdfe83a5ca0a923e5d1e31bff076e406ce diff --git a/lib/index.cc b/lib/index.cc index 146a8928..3f694387 100644 --- a/lib/index.cc +++ b/lib/index.cc @@ -385,7 +385,7 @@ _index_mime_part (notmuch_message_t *message, const char *charset; if (! part) { - _notmuch_database_log (_notmuch_message_database (message), + _notmuch_database_log (notmuch_message_get_database (message), "Warning: Not indexing empty mime part.\n"); return; } @@ -411,7 +411,7 @@ _index_mime_part (notmuch_message_t *message, g_mime_multipart_get_part (multipart, i)); continue; } else if (i != GMIME_MULTIPART_SIGNED_CONTENT) { - _notmuch_database_log (_notmuch_message_database (message), + _notmuch_database_log (notmuch_message_get_database (message), "Warning: Unexpected extra parts of multipart/signed. Indexing anyway.\n"); } } @@ -424,7 +424,7 @@ _index_mime_part (notmuch_message_t *message, GMIME_MULTIPART_ENCRYPTED (part)); } else { if (i != GMIME_MULTIPART_ENCRYPTED_VERSION) { - _notmuch_database_log (_notmuch_message_database (message), + _notmuch_database_log (notmuch_message_get_database (message), "Warning: Unexpected extra parts of multipart/encrypted.\n"); } } @@ -447,7 +447,7 @@ _index_mime_part (notmuch_message_t *message, } if (! (GMIME_IS_PART (part))) { - _notmuch_database_log (_notmuch_message_database (message), + _notmuch_database_log (notmuch_message_get_database (message), "Warning: Not indexing unknown mime part: %s.\n", g_type_name (G_OBJECT_TYPE (part))); return; @@ -528,7 +528,7 @@ _index_encrypted_mime_part (notmuch_message_t *message, if (!indexopts || (notmuch_indexopts_get_decrypt_policy (indexopts) == NOTMUCH_DECRYPT_FALSE)) return; - notmuch = _notmuch_message_database (message); + notmuch = notmuch_message_get_database (message); GMimeCryptoContext* crypto_ctx = NULL; #if (GMIME_MAJOR_VERSION < 3)