mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-28 21:54:10 +01:00
lib: Invalidate message metadata in _notmuch_message_gen_terms
Previously, we invalidated stored message metadata in _notmuch_message_add_term and _notmuch_message_remove_term, but not in _notmuch_message_gen_terms. This doesn't currently result in any bugs because of our limited uses of _notmuch_message_gen_terms, but it may could cause trouble in the future.
This commit is contained in:
parent
6c9721a407
commit
30de720ba0
1 changed files with 2 additions and 0 deletions
|
@ -1032,6 +1032,8 @@ _notmuch_message_gen_terms (notmuch_message_t *message,
|
||||||
/* Create a gap between this an the next terms so they don't
|
/* Create a gap between this an the next terms so they don't
|
||||||
* appear to be a phrase. */
|
* appear to be a phrase. */
|
||||||
message->termpos = term_gen->get_termpos () + 100;
|
message->termpos = term_gen->get_termpos () + 100;
|
||||||
|
|
||||||
|
_notmuch_message_invalidate_metadata (message, prefix_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
term_gen->set_termpos (message->termpos);
|
term_gen->set_termpos (message->termpos);
|
||||||
|
|
Loading…
Reference in a new issue