X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Findex.cc;h=e8e9922b408a4d59a771aedf6783fc73126b0ad0;hp=bdfb8ed5c363aea8a2c44e3a8d9ce902185118ab;hb=1d6b49561f50d6cde1b473f9887e37748e49c02c;hpb=45fe3547458e0c403f7501bad89860afe2fa534a diff --git a/lib/index.cc b/lib/index.cc index bdfb8ed5..e8e9922b 100644 --- a/lib/index.cc +++ b/lib/index.cc @@ -325,6 +325,12 @@ _index_mime_part (notmuch_message_t *message, GMimeMultipart *multipart = GMIME_MULTIPART (part); int i; + if (GMIME_IS_MULTIPART_SIGNED (multipart)) + _notmuch_message_add_term (message, "tag", "signed"); + + if (GMIME_IS_MULTIPART_ENCRYPTED (multipart)) + _notmuch_message_add_term (message, "tag", "encrypted"); + for (i = 0; i < g_mime_multipart_get_count (multipart); i++) { if (GMIME_IS_MULTIPART_SIGNED (multipart)) { /* Don't index the signature. */