notmuch/lib
Carl Worth c48dcc302c lib: search_threads: Fix nested search to handle original search of "*"
When constructing a thread, we usually run a nested query to find all
messages in the thread that match the original search string. However,
we need to have special-case handling of an original search string of
"*" now that that is a supported means of specifying all messages.

The special-case ends up bein quite simple---we do less work, (just
skipping the nested search since we know that all messages must
match). I had been wanting to write this identical code to more
efficiently handle "notmuch search thread:<foo>" which was previously
running two identical searches. So that case is now more efficient as
well.
2010-04-15 14:54:40 -07:00
..
database-private.h Fix printf for when uint64_t != unsigned long long int 2010-02-09 11:14:16 -08:00
database.cc lib: Remove condition regarding a NULL parent_thread_id. 2010-04-12 15:54:03 -07:00
directory.cc lib: Rename iterator functions to prepare for reverse iteration. 2010-03-09 09:22:29 -08:00
index.cc Do not segfault on empty mime parts 2010-04-13 08:49:06 -07:00
libsha1.c libify: Move library sources down into lib directory. 2009-11-09 16:24:03 -08:00
libsha1.h libify: Move library sources down into lib directory. 2009-11-09 16:24:03 -08:00
Makefile Makefiles: Use .DEFAULT to support arbitrary targets from sub directories. 2010-01-06 10:32:06 -08:00
Makefile.local Makefile: Add library version information on OS X. 2010-04-14 16:18:19 -07:00
message-file.c fix notmuch_message_file_get_header 2010-04-06 18:47:28 -07:00
message.cc lib: Silence a compiler warning. 2010-03-09 12:07:26 -08:00
messages.c lib: Rename iterator functions to prepare for reverse iteration. 2010-03-09 09:22:29 -08:00
notmuch-private.h lib: Rename iterator functions to prepare for reverse iteration. 2010-03-09 09:22:29 -08:00
notmuch.h Fix typo in notmuch.h documentation regarding database open modes 2010-04-13 08:39:10 -07:00
query.cc lib: Handle "*" as a query string to match all messages. 2010-04-09 17:43:58 -07:00
sha1.c Typsos 2009-11-18 03:21:36 -08:00
tags.c lib: Rename iterator functions to prepare for reverse iteration. 2010-03-09 09:22:29 -08:00
thread.cc lib: search_threads: Fix nested search to handle original search of "*" 2010-04-15 14:54:40 -07:00
xutil.c xutil: Implement xstrndup without relying on strndup. 2009-12-01 12:51:39 -08:00
xutil.h libify: Move library sources down into lib directory. 2009-11-09 16:24:03 -08:00