+2008-08-05 Srinivasa Ragavan <sragavan@novell.com>
+
+ ** Fix for bug #546184
+
+ * camel/camel-folder-search.c: Search if we are under match_all.
+
2008-08-04 Matthew Barnes <mbarnes@redhat.com>
* camel.pc.in: List sqlite3 as a requirement.
p->ex = ex;
- if (strstr((const char *) expr, "body-contains")) {
+ /* We route body-contains search and uid search through memory and not via db. */
+ if (uids || strstr((const char *) expr, "body-contains")) {
/* setup our search list only contains those we're interested in */
search->summary = camel_folder_get_summary(search->folder);
}
/* cache this, so we only have to re-calculate once per search at most */
- #warning "make search threads work well. Not sure if that works"
if (p->threads == NULL) {
p->threads = camel_folder_thread_messages_new(search->folder, NULL, TRUE);
p->threads_hash = g_hash_table_new(g_str_hash, g_str_equal);
r(printf("executing user-tag\n"));
- if (argc == 1)
+ if (search->current && argc == 1)
value = camel_message_info_user_tag(search->current, argv[0]->value.string);
r = e_sexp_result_new(f, ESEXP_RES_STRING);