2008-10-06 Srinivasa Ragavan <sragavan@novell.com>
+ ** Fix for bug #554455
+
+ * camel/camel-folder-search.c: Allow thread based searches by falling
+ back on the old in-memory search model.
+
+2008-10-06 Srinivasa Ragavan <sragavan@novell.com>
+
** Fixes lots of bugs and breaks ABI
* camel/camel-db.c: Added new APIs and support for cloning handles.
p->ex = ex;
- /* We route body-contains search and uid search through memory and not via db. */
- if (strstr((const char *) expr, "body-contains")) {
+ /* We route body-contains search and thread based search through memory and not via db. */
+ if (strstr((const char *) expr, "body-contains") || strstr((const char *) expr, "match-threads")) {
/* setup our search list only contains those we're interested in */
search->summary = camel_folder_get_summary(search->folder);
p->ex = ex;
- /* We route body-contains search and uid search through memory and not via db. */
- if (uids || strstr((const char *) expr, "body-contains")) {
+ /* We route body-contains / thread based search and uid search through memory and not via db. */
+ if (uids || strstr((const char *) expr, "body-contains") || strstr((const char *) expr, "match-threads")) {
/* setup our search list only contains those we're interested in */
search->summary = camel_folder_get_summary(search->folder);