diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2002-11-13 13:38:04 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2002-11-13 13:38:04 +0000 |
commit | b5eec1ac68580e756af3d71d766a1ae7f7376a06 (patch) | |
tree | 486fe204e8c21401e7d0005ab59b5346da73dd7d | |
parent | bbc963549d99c9f133e053dea82e5e86ec1cb2ef (diff) | |
download | mailutils-b5eec1ac68580e756af3d71d766a1ae7f7376a06.tar.gz mailutils-b5eec1ac68580e756af3d71d766a1ae7f7376a06.tar.bz2 |
Modified to reflect changes in the API.
-rw-r--r-- | libsieve/sv.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libsieve/sv.c b/libsieve/sv.c index 551111e84..4cf20488b 100644 --- a/libsieve/sv.c +++ b/libsieve/sv.c @@ -43,15 +43,20 @@ main (int argc, char **argv) debug++; assert (argc > 2); } else n = 1; - rc = sieve_compile (&mach, argv[n], NULL, NULL); + sieve_machine_init (&mach, NULL); + + rc = sieve_compile (&mach, argv[n]); if (rc == 0) { if (debug) - sieve_set_debug (&mach, debug_printer, 100); + { + sieve_machine_set_debug (&mach, debug_printer, 100); + fprintf (stderr, "RUNNING\n"); + } sieve_run (&mach); } return rc; } |