diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-06-05 00:27:20 +0200 |
---|---|---|
committer | Johannes Berg <johannes@sipsolutions.net> | 2008-06-05 00:27:20 +0200 |
commit | 2f54d90ec57c00b512855387a7e01c5b28e53b14 (patch) | |
tree | bea7dc8399e26f5d9d58a81b5469aaa449b0099d | |
parent | c35dffecef73d4c69a141d1799433d6265846f05 (diff) | |
download | dovecot-antispam-2f54d90ec57c00b512855387a7e01c5b28e53b14.tar.gz dovecot-antispam-2f54d90ec57c00b512855387a7e01c5b28e53b14.tar.xz dovecot-antispam-2f54d90ec57c00b512855387a7e01c5b28e53b14.zip |
fix bug in 1.1 code
-rw-r--r-- | antispam-storage-1.1.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/antispam-storage-1.1.c b/antispam-storage-1.1.c index a273f88..1c9fe6b 100644 --- a/antispam-storage-1.1.c +++ b/antispam-storage-1.1.c @@ -172,12 +172,14 @@ static int antispam_save_finish(struct mail_save_context *ctx) ANTISPAM_CONTEXT(ctx->transaction->box); struct antispam_internal_context *ast = ANTISPAM_CONTEXT(ctx->transaction); - struct mail *dest_mail = ast->mail; + struct mail *dest_mail; int ret; if (asbox->module_ctx.super.save_finish(ctx) < 0) return -1; + dest_mail = ctx->dest_mail ? : ast->mail; + asbox->save_hack = TRUE; ret = 0; |