From 722c35d2cc60658d4565305d6a50af85fd2ae25e Mon Sep 17 00:00:00 2001 From: NotZed Date: Mon, 1 May 2000 23:36:48 +0000 Subject: Fix for api. 2000-05-01 NotZed * filter-driver.c (main): Fix for api. svn path=/trunk/; revision=2726 --- filter/ChangeLog | 4 ++++ filter/filter-driver.c | 13 +------------ 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/filter/ChangeLog b/filter/ChangeLog index 5839019a2a..0b46e59899 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -1,3 +1,7 @@ +2000-05-01 NotZed + + * filter-driver.c (main): Fix for api. + 2000-04-30 Dan Winship * filter-driver.c (start): Remove no-longer-necessary call to diff --git a/filter/filter-driver.c b/filter/filter-driver.c index 153bccfd5f..ff8b0a6fda 100644 --- a/filter/filter-driver.c +++ b/filter/filter-driver.c @@ -311,13 +311,6 @@ start(void) return x; } -static void -search_cb(CamelFolder *f, int id, gboolean complete, GList *matches, struct exec_context *x) -{ - printf("appending matches ...\n"); - x->matches = g_list_concat(x->matches, g_list_copy(matches)); -} - int main(int argc, char **argv) { ESExp *f; @@ -361,12 +354,8 @@ int main(int argc, char **argv) expand_filter_option(s, a, fo); printf("searching expression %s\n", s->str); - x->matches= NULL; - id = camel_folder_search_by_expression (x->folder, s->str, search_cb, x, x->ex); + x->matches = camel_folder_search_by_expression (x->folder, s->str, x->ex); - /* wait for it to finish */ - camel_folder_search_complete(x->folder, id, TRUE, x->ex); - /* remove uid's for which processing is complete ... */ m = x->matches; while (m) { -- cgit