aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Kaiser <skdovecot@smail.inf.fh-bonn-rhein-sieg.de>2008-03-06 10:20:05 +0100
committerJohannes Berg <johannes@sipsolutions.net>2008-03-06 10:20:05 +0100
commit0c7ddc116b1594285b490f5ed2ff035dfd5614bc (patch)
tree4230a3ad01be2f11f26ecd35f8c2389f5b6c0f12
parent30069ed708d38d32cd889611812af917bd5a0f9a (diff)
downloaddovecot-antispam-0c7ddc116b1594285b490f5ed2ff035dfd5614bc.tar.gz
dovecot-antispam-0c7ddc116b1594285b490f5ed2ff035dfd5614bc.tar.xz
dovecot-antispam-0c7ddc116b1594285b490f5ed2ff035dfd5614bc.zip
Properly log return value of sendmail invocation if it fails.
-rw-r--r--mailtrain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mailtrain.c b/mailtrain.c
index 0df0321..c2e3a6f 100644
--- a/mailtrain.c
+++ b/mailtrain.c
@@ -139,7 +139,7 @@ static int process_tmpdir(struct mailbox_transaction_context *ctx,
fd = open(buf, O_RDONLY);
read(fd, &wanted, sizeof(wanted));
- if (run_sendmail(fd, wanted)) {
+ if ((rc = run_sendmail(fd, wanted))) {
mail_storage_set_error(ctx->box->storage,
"failed to send mail");
debug("run program failed with exit code %d\n", rc);