/* Check that we should be searching this folder. */
/* Note that we don't try to search sub-folders.
* Maybe we should, but that should be specified. */
- if (search->folder && (strcmp (tny_folder_get_id (folder), search->folder) != 0))
+ if (search->folder && strlen (search->folder) && (strcmp (tny_folder_get_id (folder), search->folder) != 0))
return NULL;
-
+
GList *retval = NULL;
TnyIterator *iter = NULL;
TnyList *list = NULL;
g_object_unref (iter);
g_object_unref (folders);
+ /* printf ("DEBUG: %s: hits length = %d\n", __FUNCTION__, g_list_length (hits)); */
return hits;
}
g_object_unref (accounts);
g_object_unref (iter);
+ /* printf ("DEBUG: %s: end: hits length=%d\n", __FUNCTION__, g_list_length(hits)); */
return hits;
}