gboolean found = FALSE;
/* Do not search into attachments */
- if (modest_tny_mime_part_is_attachment_for_modest (part))
+ if (modest_tny_mime_part_is_attachment_for_modest (part) && !TNY_IS_MSG (part))
return FALSE;
#ifdef MODEST_HAVE_OGS
TnyList *children = tny_simple_list_new ();
helper->pending_calls++;
tny_folder_store_get_folders_async (TNY_FOLDER_STORE (folder), children, NULL,
- modest_search_account_get_folders_cb,
+ FALSE, modest_search_account_get_folders_cb,
NULL, helper);
}
/* Get folders */
tny_folder_store_get_folders_async (TNY_FOLDER_STORE (account), folders, NULL,
- modest_search_account_get_folders_cb,
+ FALSE, modest_search_account_get_folders_cb,
NULL, helper);
}