From eacb6df29372f530be39df143b47d82484453cb9 Mon Sep 17 00:00:00 2001 From: 9 Date: Tue, 9 Oct 2001 22:27:07 +0000 Subject: Implement. 2001-10-09 * mail-local.c (mlf_search_by_uids): Implement. svn path=/trunk/; revision=13533 --- mail/ChangeLog | 4 ++++ mail/mail-local.c | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/mail/ChangeLog b/mail/ChangeLog index 44e9ff183d..c067549acb 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,7 @@ +2001-10-09 + + * mail-local.c (mlf_search_by_uids): Implement. + 2001-10-09 Jeffrey Stedfast * folder-browser-ui.c (folder_browser_ui_add_message): Create a diff --git a/mail/mail-local.c b/mail/mail-local.c index 2661572c4a..85bedf43cc 100644 --- a/mail/mail-local.c +++ b/mail/mail-local.c @@ -324,6 +324,24 @@ mlf_search_by_expression(CamelFolder *folder, const char *expression, CamelExcep return ret; } +static GPtrArray * +mlf_search_by_uids(CamelFolder *folder, const char *expression, GPtrArray *uids, CamelException *ex) +{ + MailLocalFolder *mlf = MAIL_LOCAL_FOLDER (folder); + GPtrArray *ret; + CamelFolder *f; + + LOCAL_FOLDER_LOCK(mlf); + f = mlf->real_folder; + camel_object_ref((CamelObject *)f); + LOCAL_FOLDER_UNLOCK(mlf); + + ret = camel_folder_search_by_uids(f, expression, uids, ex); + camel_object_unref((CamelObject *)f); + + return ret; +} + static void mlf_search_free(CamelFolder *folder, GPtrArray *result) { @@ -476,6 +494,7 @@ mlf_class_init (CamelObjectClass *camel_object_class) camel_folder_class->search_free = mlf_search_free; camel_folder_class->search_by_expression = mlf_search_by_expression; + camel_folder_class->search_by_uids = mlf_search_by_uids; camel_folder_class->set_message_flags = mlf_set_message_flags; camel_folder_class->set_message_user_flag = mlf_set_message_user_flag; camel_folder_class->set_message_user_tag = mlf_set_message_user_tag; -- cgit