diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2007-10-03 19:18:14 +0200 |
---|---|---|
committer | Johannes Berg <johannes@sipsolutions.net> | 2007-10-03 19:18:14 +0200 |
commit | 2bdba5c2daab5ab6c090ebcc8a60000a68bf180d (patch) | |
tree | 779a2a28d26de3b0db86cccbd64c56440db6ddc1 | |
parent | 167942c6a930fe02184e2cc02c6e48e187565b4f (diff) | |
download | dovecot-antispam-2bdba5c2daab5ab6c090ebcc8a60000a68bf180d.tar.gz dovecot-antispam-2bdba5c2daab5ab6c090ebcc8a60000a68bf180d.tar.xz dovecot-antispam-2bdba5c2daab5ab6c090ebcc8a60000a68bf180d.zip |
don't break dspam-exec backend when DEBUG=stderr
-rw-r--r-- | dspam-exec.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dspam-exec.c b/dspam-exec.c index f0b1824..e70d1d5 100644 --- a/dspam-exec.c +++ b/dspam-exec.c @@ -131,8 +131,14 @@ static int call_dspam(const char *signature, enum classification wanted) argv[3] = (char *)class_arg; argv[4] = (char *)sign_arg; +#ifdef DEBUG_SYSLOG + /* + * 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 ...", dspam_binary, class_arg, sign_arg); +#endif for (i = 0; i < extra_args_num; i++) argv[i + 5] = (char *)extra_args[i]; |