mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-18 09:15:56 +01:00
Ignore encrypted parts when indexing.
It appears to be an oversight that encrypted parts were indexed previously. The terms generated from encrypted parts are meaningless and do nothing but add bloat to the database. It is not worth indexing the encrypted content, just as it's not worth indexing the signatures in signed parts.
This commit is contained in:
parent
bed6022ed1
commit
ac7f843064
1 changed files with 4 additions and 0 deletions
|
@ -339,6 +339,10 @@ _index_mime_part (notmuch_message_t *message,
|
|||
if (i > 1)
|
||||
fprintf (stderr, "Warning: Unexpected extra parts of multipart/signed. Indexing anyway.\n");
|
||||
}
|
||||
if (GMIME_IS_MULTIPART_ENCRYPTED (multipart)) {
|
||||
/* Don't index encrypted parts. */
|
||||
continue;
|
||||
}
|
||||
_index_mime_part (message,
|
||||
g_mime_multipart_get_part (multipart, i));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue