From d5e090651bbd30ee761624187db6ad7920162aa8 Mon Sep 17 00:00:00 2001 From: 9 Date: Tue, 9 Oct 2001 22:26:01 +0000 Subject: Implement. 2001-10-09 * providers/local/camel-spool-folder.c (spool_search_by_uids): Implement. * providers/imap/camel-imap-search.c (imap_body_contains): If searching a sub-set of the total message count, then use a UID range to search only specific messages. * camel-vee-folder.c (vee_folder_change_match): Removed. (folder_changed_add_uid): Helper func for changed code. (folder_changed_remove_uid): " (folder_changed_change_uid): " (folder_changed): Rewritten. Supports proper auto-updating of changes, but not removals till a sync occurs. (vee_search_by_uids): Implement. (folder_changed): Changed to call an async threaded function to do the actual folder updating. * camel-folder-summary.c (camel_flag_list_copy): New func to copy a whole list of flags. (camel_tag_list_copy): New func to copy a whole list of flags. * providers/imap/camel-imap-folder.c (imap_search_by_uids): Implement. * providers/local/camel-local-folder.c (local_search_by_uids): Implement. * camel-folder.c (camel_folder_search_by_uids): New function, search a subset of uid's. (search_by_uids): Default impl, return error. svn path=/trunk/; revision=13532 --- camel/camel-folder.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'camel/camel-folder.h') diff --git a/camel/camel-folder.h b/camel/camel-folder.h index e9b15b1306..3d59c2bd7f 100644 --- a/camel/camel-folder.h +++ b/camel/camel-folder.h @@ -136,9 +136,8 @@ typedef struct { gboolean (*has_search_capability) (CamelFolder *folder); - GPtrArray * (*search_by_expression) (CamelFolder *folder, - const char *expression, - CamelException *ex); + GPtrArray * (*search_by_expression) (CamelFolder *, const char *, CamelException *); + GPtrArray * (*search_by_uids) (CamelFolder *, const char *, GPtrArray *uids, CamelException *); void (*search_free) (CamelFolder *folder, GPtrArray *result); @@ -254,9 +253,8 @@ void camel_folder_free_uids (CamelFolder *folder, /* search api */ gboolean camel_folder_has_search_capability (CamelFolder *folder); -GPtrArray * camel_folder_search_by_expression (CamelFolder *folder, - const char *expression, - CamelException *ex); +GPtrArray * camel_folder_search_by_expression (CamelFolder *folder, const char *expr, CamelException *ex); +GPtrArray * camel_folder_search_by_uids (CamelFolder *folder, const char *expr, GPtrArray *uids, CamelException *ex); void camel_folder_search_free (CamelFolder *folder, GPtrArray *); /* summary info */ -- cgit