diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2007-10-14 23:23:54 +0200 |
---|---|---|
committer | Johannes Berg <johannes@sipsolutions.net> | 2007-10-14 23:23:54 +0200 |
commit | 9d79926aebf81af7ca33648f992c22374def0922 (patch) | |
tree | e975057d8398951a054ff448576ab40f7bcdb6a9 /dspam-exec.c | |
parent | c1b287878d7ae8d146e7054002479e53de47f6cb (diff) | |
download | dovecot-antispam-9d79926aebf81af7ca33648f992c22374def0922.tar.gz dovecot-antispam-9d79926aebf81af7ca33648f992c22374def0922.tar.xz dovecot-antispam-9d79926aebf81af7ca33648f992c22374def0922.zip |
make settings per-plugin
Diffstat (limited to 'dspam-exec.c')
-rw-r--r-- | dspam-exec.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dspam-exec.c b/dspam-exec.c index 442132e..5c08fc2 100644 --- a/dspam-exec.c +++ b/dspam-exec.c @@ -136,7 +136,7 @@ static int call_dspam(const char *signature, enum classification wanted) * not good with stderr debuggin since we then write to * stderr which our parent takes as a bug */ - debug("antispam: %s --source=error --stdout %s %s ...", + debug("%s --source=error --stdout %s %s ...", dspam_binary, class_arg, sign_arg); #endif @@ -200,21 +200,21 @@ int backend_handle_mail(struct mailbox_transaction_context *t, void backend_init(pool_t pool) { - char *tmp; + const char *tmp; int i; - tmp = getenv("ANTISPAM_DSPAM_BINARY"); + tmp = get_setting("DSPAM_BINARY"); if (tmp) dspam_binary = tmp; - debug("antispam: dspam binary set to %s\n", dspam_binary); + debug("dspam binary set to %s\n", dspam_binary); - tmp = getenv("ANTISPAM_DSPAM_ARGS"); + tmp = get_setting("DSPAM_ARGS"); if (tmp) { extra_args = p_strsplit(pool, tmp, ";"); 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", + debug("dspam extra arg %s\n", extra_args[i]); } |