sieve: implement an option to add directory to the head of the library search path.
* TODO: Update. * include/mailutils/sieve.h (mu_sieve_library_path_prefix): New variable. * libmu_argp/sieve.c (sieve_argp_option): New option --libdir-prefix. (sieve_argp_parser): Handle --libdir-prefix. * libmu_cfg/sieve.c (cb_library_path_prefix): New callback. (mu_sieve_param): New statement "library-path-prefix". * libmu_sieve/conf.c (mu_sieve_library_path_prefix): New variable. (mu_sieve_module_init): Process prefix paths. Do not call mu_sv_load_add_path. * libmu_sieve/load.c (sieve_init_load_path): Rewrite. (mu_sv_load_add_path): Remove. * libmu_sieve/sieve-priv.h (mu_sv_load_add_path): Remove declaration. (sieve_searchpath): Remove the unused "add" parameter. * sieve/tests/moderator.at: Use MUT_SIEVE_OPTIONS in all tests. * sieve/tests/testsuite.at (MUT_SIEVE_EXT_TEST): Use --libdir-prefix option to ensure that our version of the extension appears first in the path.
Showing
10 changed files
with
40 additions
and
35 deletions
-
Please register or sign in to post a comment