diff options
Diffstat (limited to 'lib/index.cc')
-rw-r--r-- | lib/index.cc | 6 |
1 files changed, 6 insertions, 0 deletions
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. */ |