X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Findex.cc;h=08cc84e23c8e08628b25a7bd5d44b2ce6af3cb7b;hp=db3dd56854d1edb8d81280c4863543ef1a28566d;hb=ab0ae8b1c086ca3878f16ce40cc421eeb206c79e;hpb=8b25643d08b9388ae9c38837a3dfd3dbc6b085cf diff --git a/lib/index.cc b/lib/index.cc index db3dd568..08cc84e2 100644 --- a/lib/index.cc +++ b/lib/index.cc @@ -407,7 +407,6 @@ _index_mime_part (notmuch_message_t *message, _notmuch_message_add_term (message, "tag", "encrypted"); for (i = 0; i < g_mime_multipart_get_count (multipart); i++) { - notmuch_status_t status; GMimeObject *child; if (GMIME_IS_MULTIPART_SIGNED (multipart)) { /* Don't index the signature, but index its content type. */ @@ -436,11 +435,7 @@ _index_mime_part (notmuch_message_t *message, continue; } child = g_mime_multipart_get_part (multipart, i); - status = _notmuch_message_crypto_potential_payload (msg_crypto, child, part, i); - if (status) - _notmuch_database_log (notmuch_message_get_database (message), - "Warning: failed to mark the potential cryptographic payload (%s).\n", - notmuch_status_to_string (status)); + (void) _notmuch_message_crypto_potential_payload (msg_crypto, child, part, i); _index_mime_part (message, indexopts, child, msg_crypto); } return; @@ -578,7 +573,7 @@ _index_encrypted_mime_part (notmuch_message_t *message, } g_object_unref (decrypt_result); } - status = _notmuch_message_crypto_potential_payload (msg_crypto, clear, GMIME_OBJECT (encrypted_data), GMIME_MULTIPART_ENCRYPTED_CONTENT); + _notmuch_message_crypto_potential_payload (msg_crypto, clear, GMIME_OBJECT (encrypted_data), GMIME_MULTIPART_ENCRYPTED_CONTENT); _index_mime_part (message, indexopts, clear, msg_crypto); g_object_unref (clear);