notmuch/lib
David Bremner 319dd95ebb lib: add 'body:' field, stop indexing headers twice.
The new `body:` field (in Xapian terms) or prefix (in slightly
sloppier notmuch) terms allows matching terms that occur only in the
body.

Unprefixed query terms should continue to match anywhere (header or
body) in the message.

This follows a suggestion of Olly Betts to use the facility (since
Xapian 1.0.4) to add the same field with multiple prefixes. The double
indexing of previous versions is thus replaced with a query time
expension of unprefixed query terms to the various prefixed
equivalent.

Reindexing will be needed for 'body:' searches to work correctly;
otherwise they will also match messages where the term occur in
headers (demonstrated by the new tests in T530-upgrade.sh)
2019-04-17 08:48:16 -03:00
..
add-message.cc lib: change parent strategy to use In-Reply-To if it looks sane 2018-09-06 08:07:13 -03:00
built-with.c configure: session key handling in gmime maps to built_with("session_key") 2017-12-04 21:39:50 -04:00
config.cc lib: convert notmuch_bool_t to stdbool internally 2017-10-09 22:27:16 -03:00
database-private.h lib: add 'body:' field, stop indexing headers twice. 2019-04-17 08:48:16 -03:00
database.cc lib: add 'body:' field, stop indexing headers twice. 2019-04-17 08:48:16 -03:00
directory.cc lib: convert notmuch_bool_t to stdbool internally 2017-10-09 22:27:16 -03:00
filenames.c lib: convert notmuch_bool_t to stdbool internally 2017-10-09 22:27:16 -03:00
index.cc index: explicitly follow GObject conventions 2018-10-21 10:21:26 -03:00
indexopts.c crypto: add --decrypt=nostash to avoid stashing session keys 2017-12-08 08:08:47 -04:00
Makefile fix sum moar typos [build scripts, Makefiles] 2011-06-23 15:44:59 -07:00
Makefile.local lib: add thread subqueries. 2018-05-07 08:42:53 -03:00
message-file.c lib: convert notmuch_bool_t to stdbool internally 2017-10-09 22:27:16 -03:00
message-id.c lib: add _notmuch_message_id_parse_strict 2018-09-06 08:07:13 -03:00
message-private.h lib: convert notmuch_bool_t to stdbool internally 2017-10-09 22:27:16 -03:00
message-property.cc properties: add notmuch_message_count_properties 2018-05-26 07:31:39 -07:00
message.cc lib: add 'body:' field, stop indexing headers twice. 2019-04-17 08:48:16 -03:00
messages.c lib/thread: change _resolve_thread_relationships to use depths 2018-09-06 08:07:13 -03:00
notmuch-private.h lib: add _notmuch_message_id_parse_strict 2018-09-06 08:07:13 -03:00
notmuch.h docs: Use correct call to notmuch_query_search_threads in usage example 2019-01-25 20:51:00 -04:00
notmuch.sym build: switch to hiding libnotmuch symbols by default 2017-05-12 07:17:18 -03:00
parse-time-vrp.cc Use https instead of http where possible 2016-06-05 08:32:17 -03:00
parse-time-vrp.h Use https instead of http where possible 2016-06-05 08:32:17 -03:00
query-fp.cc Use https instead of http where possible 2016-06-05 08:32:17 -03:00
query-fp.h Use https instead of http where possible 2016-06-05 08:32:17 -03:00
query.cc lib: work around xapian bug with get_mset(0,0, x) 2018-04-26 22:14:59 -03:00
regexp-fields.cc lib: use phrase search for anything not ending in '*' 2019-03-28 14:34:37 -03:00
regexp-fields.h lib: Add regexp searching for mid: prefix 2017-05-09 07:44:15 -03:00
sha1.c lib: use glib for sha1 digests instead of embedding libsha1 2017-01-08 10:50:38 -04:00
string-list.c lib: add notmuch_message_count_files 2017-08-01 21:17:47 -04:00
string-map.c lib/string_map: fix return type of string_cmp 2019-03-05 21:46:41 -04:00
tags.c Use https instead of http where possible 2016-06-05 08:32:17 -03:00
thread-fp.cc lib: define specialized get_thread_id for use in thread subquery 2018-05-07 08:42:53 -03:00
thread-fp.h lib: add thread subqueries. 2018-05-07 08:42:53 -03:00
thread.cc lib/thread: change _resolve_thread_relationships to use depths 2018-09-06 08:07:13 -03:00