diff options
Diffstat (limited to 'camel/tests/folder')
-rw-r--r-- | camel/tests/folder/Makefile.am | 2 | ||||
-rw-r--r-- | camel/tests/folder/test9.c | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/camel/tests/folder/Makefile.am b/camel/tests/folder/Makefile.am index f6dd852dd8..7ae6ef9a9d 100644 --- a/camel/tests/folder/Makefile.am +++ b/camel/tests/folder/Makefile.am @@ -10,7 +10,7 @@ LDADD = \ $(top_builddir)/libibex/libibex.la \ $(GNOME_LIBDIR) \ $(top_builddir)/camel/tests/lib/libcameltest.a \ - $(GNOMEUI_LIBS) $(INTLLIBS) $(EXTRA_GNOME_LIBS) + $(GNOMEUI_LIBS) $(INTLLIBS) $(MAILER_LIBS) check_PROGRAMS = \ test1 test4 test5 \ diff --git a/camel/tests/folder/test9.c b/camel/tests/folder/test9.c index 17ec182832..974c2c7793 100644 --- a/camel/tests/folder/test9.c +++ b/camel/tests/folder/test9.c @@ -165,7 +165,8 @@ int main(int argc, char **argv) pull(); push("Building filters"); - driver = camel_filter_driver_new(get_folder, NULL); + driver = camel_filter_driver_new(); + camel_filter_driver_set_folder_func(driver, get_folder, NULL); for (i=0;i<ARRAY_LEN(rules);i++) { camel_filter_driver_add_rule(driver, rules[i].name, rules[i].match, rules[i].action); } @@ -185,7 +186,8 @@ int main(int argc, char **argv) push("Testing broken match rules"); for (i=0;i<ARRAY_LEN(brokens);i++) { push("rule %s", brokens[i].match); - driver = camel_filter_driver_new(get_folder, NULL); + driver = camel_filter_driver_new(); + camel_filter_driver_set_folder_func(driver, get_folder, NULL); camel_filter_driver_add_rule(driver, brokens[i].name, brokens[i].match, brokens[i].action); camel_filter_driver_filter_mbox(driver, "/tmp/camel-test/inbox", NULL, ex); check(camel_exception_is_set(ex)); @@ -198,7 +200,8 @@ int main(int argc, char **argv) push("Testing broken action rules"); for (i=0;i<ARRAY_LEN(brokena);i++) { push("rule %s", brokena[i].action); - driver = camel_filter_driver_new(get_folder, NULL); + driver = camel_filter_driver_new(); + camel_filter_driver_set_folder_func(driver, get_folder, NULL); camel_filter_driver_add_rule(driver, brokena[i].name, brokena[i].match, brokena[i].action); camel_filter_driver_filter_mbox(driver, "/tmp/camel-test/inbox", NULL, ex); check(camel_exception_is_set(ex)); |