diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-07-22 15:11:46 +0200 |
---|---|---|
committer | Johannes Berg <johannes@sipsolutions.net> | 2008-07-22 15:11:46 +0200 |
commit | 54fe8b45bb275d05700683fb5bf149faca71d5d0 (patch) | |
tree | 572f809398391ba28d482a19011e78905e9333f9 | |
parent | 2f54d90ec57c00b512855387a7e01c5b28e53b14 (diff) | |
download | dovecot-antispam-54fe8b45bb275d05700683fb5bf149faca71d5d0.tar.gz dovecot-antispam-54fe8b45bb275d05700683fb5bf149faca71d5d0.tar.xz dovecot-antispam-54fe8b45bb275d05700683fb5bf149faca71d5d0.zip |
fix quota vs. antispam issue in 1.1
-rw-r--r-- | antispam-storage-1.1.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/antispam-storage-1.1.c b/antispam-storage-1.1.c index 1c9fe6b..709aba7 100644 --- a/antispam-storage-1.1.c +++ b/antispam-storage-1.1.c @@ -153,6 +153,7 @@ static int antispam_save_init(struct mailbox_transaction_context *t, { struct antispam_internal_context *ast = ANTISPAM_CONTEXT(t); struct antispam_mailbox *asbox = ANTISPAM_CONTEXT(t->box); + int ret; if (!dest_mail) { if (!ast->mail) @@ -161,9 +162,13 @@ static int antispam_save_init(struct mailbox_transaction_context *t, NULL); dest_mail = ast->mail; } - return asbox->module_ctx.super.save_init(t, flags, keywords, received_date, + ret = asbox->module_ctx.super.save_init;(t, flags, keywords, received_date, timezone_offset, from_envelope, input, dest_mail, ctx_r); + + (*ctx_r)->dest_mail = dest_mail; + + return ret; } static int antispam_save_finish(struct mail_save_context *ctx) |