unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] lib: Invalidate message metadata in _notmuch_message_gen_terms
@ 2014-08-01  2:59 Austin Clements
  2014-08-04 22:04 ` David Bremner
  0 siblings, 1 reply; 2+ messages in thread
From: Austin Clements @ 2014-08-01  2:59 UTC (permalink / raw)
  To: notmuch

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.
---
 lib/message.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/message.cc b/lib/message.cc
index 1618e81..cde6a1c 100644
--- a/lib/message.cc
+++ b/lib/message.cc
@@ -1049,6 +1049,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);
-- 
2.0.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] lib: Invalidate message metadata in _notmuch_message_gen_terms
  2014-08-01  2:59 [PATCH] lib: Invalidate message metadata in _notmuch_message_gen_terms Austin Clements
@ 2014-08-04 22:04 ` David Bremner
  0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2014-08-04 22:04 UTC (permalink / raw)
  To: Austin Clements, notmuch

Austin Clements <amdragon@MIT.EDU> writes:

> 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.

pushed

d

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-04 22:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-01  2:59 [PATCH] lib: Invalidate message metadata in _notmuch_message_gen_terms Austin Clements
2014-08-04 22:04 ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).