From f9bbd7baa07110c7f345c8413e2426d00382cb1c Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 28 Oct 2009 10:42:07 -0700 Subject: Add full-text indexing using the GMime library for parsing. This is based on the old notmuch-index-message.cc from early in the history of notmuch, but considerably cleaned up now that we have some experience with Xapian and know just what we want to index, (rather than just blindly trying to index exactly what sup does). This does slow down notmuch_database_add_message a *lot*, but I've got some ideas for getting some time back. --- notmuch-private.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'notmuch-private.h') diff --git a/notmuch-private.h b/notmuch-private.h index c80f219..440860b 100644 --- a/notmuch-private.h +++ b/notmuch-private.h @@ -187,6 +187,11 @@ _notmuch_message_remove_term (notmuch_message_t *message, const char *prefix_name, const char *value); +notmuch_private_status_t +_notmuch_message_gen_terms (notmuch_message_t *message, + const char *prefix_name, + const char *text); + void _notmuch_message_set_filename (notmuch_message_t *message, const char *filename); @@ -205,6 +210,12 @@ _notmuch_message_set_date (notmuch_message_t *message, void _notmuch_message_sync (notmuch_message_t *message); +/* index.cc */ + +notmuch_status_t +_notmuch_message_index_file (notmuch_message_t *message, + const char *filename); + /* message-file.c */ /* XXX: I haven't decided yet whether these will actually get exported -- cgit v1.2.3