diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2007-09-30 18:24:28 +0200 |
---|---|---|
committer | Johannes Berg <johannes@sipsolutions.net> | 2007-09-30 18:24:28 +0200 |
commit | 94e5e07c847768a15157c183aaa3bcb914e1afc2 (patch) | |
tree | b4c51e1193472297d48cc3bc39053e9fe9f8d408 /dspam-exec.c | |
parent | 79a2ad5cb09df93f150c1afa231554eb9b37dc6b (diff) | |
download | dovecot-antispam-94e5e07c847768a15157c183aaa3bcb914e1afc2.tar.gz dovecot-antispam-94e5e07c847768a15157c183aaa3bcb914e1afc2.tar.xz dovecot-antispam-94e5e07c847768a15157c183aaa3bcb914e1afc2.zip |
Make it build against dovecot 1.1
Untested, use at your own risk, mostly consisted of copying
changes from the cmd-copy.c implementation into plugin.c.
Diffstat (limited to 'dspam-exec.c')
-rw-r--r-- | dspam-exec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dspam-exec.c b/dspam-exec.c index 7a58100..7875b8a 100644 --- a/dspam-exec.c +++ b/dspam-exec.c @@ -25,6 +25,7 @@ #include "lib.h" #include "plugin.h" +#include "api-compat.h" static const char *dspam_binary = "/usr/bin/dspam"; static char **extra_args = NULL; @@ -164,7 +165,7 @@ void backend_init(pool_t pool) tmp = getenv("ANTISPAM_DSPAM_ARGS"); if (tmp) { extra_args = p_strsplit(pool, tmp, ";"); - extra_args_num = strarray_length( + extra_args_num = str_array_length( (const char *const *)extra_args); for (i = 0; i < extra_args_num; i++) debug("antispam: dspam extra arg %s\n", |