diff options
author | Carl Worth <cworth@cworth.org> | 2009-10-28 10:42:07 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-10-28 12:50:10 -0700 |
commit | f9bbd7baa07110c7f345c8413e2426d00382cb1c (patch) | |
tree | 4669ed380656bfd23b8203d4fa93601e8dd4e553 /notmuch-private.h | |
parent | b04cc337388ea93cdd8a569a87f8bdc442f0cb33 (diff) |
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.
Diffstat (limited to 'notmuch-private.h')
-rw-r--r-- | notmuch-private.h | 11 |
1 files changed, 11 insertions, 0 deletions
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 |