aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorGravatar Austin Clements <amdragon@MIT.EDU>2014-07-31 22:59:27 -0400
committerGravatar David Bremner <david@tethera.net>2014-08-04 18:57:55 -0300
commit30de720ba09fdf67fbe45642da67b62dcc6ecdf7 (patch)
treeddb44240e360e49e09d040f5c53ee0eb710136c4 /lib
parent6c9721a40700394e4953e26a8191bbb9552ba145 (diff)
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/message.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/message.cc b/lib/message.cc
index e6a5a5af..90a01eb8 100644
--- a/lib/message.cc
+++ b/lib/message.cc
@@ -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
* appear to be a phrase. */
message->termpos = term_gen->get_termpos () + 100;
+
+ _notmuch_message_invalidate_metadata (message, prefix_name);
}
term_gen->set_termpos (message->termpos);