Mercurial > dovecot > core-2.2
diff src/plugins/acl/acl-mailbox.c @ 8726:68db63cc32b3 HEAD
Mail copying API changed to be based on save API. This allows extending it easily in future.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 06 Feb 2009 12:49:46 -0500 |
parents | b9faf4db2a9f |
children | e374a365521d |
line wrap: on
line diff
--- a/src/plugins/acl/acl-mailbox.c Fri Feb 06 12:48:38 2009 -0500 +++ b/src/plugins/acl/acl-mailbox.c Fri Feb 06 12:49:46 2009 -0500 @@ -287,10 +287,9 @@ } static int -acl_copy(struct mailbox_transaction_context *t, struct mail *mail, - enum mail_flags flags, struct mail_keywords *keywords, - struct mail *dest_mail) +acl_copy(struct mail_save_context *ctx, struct mail *mail) { + struct mailbox_transaction_context *t = ctx->transaction; struct acl_mailbox *abox = ACL_CONTEXT(t->box); enum acl_storage_rights save_right; @@ -298,10 +297,10 @@ ACL_STORAGE_RIGHT_POST : ACL_STORAGE_RIGHT_INSERT; if (acl_mailbox_right_lookup(t->box, save_right) <= 0) return -1; - if (acl_save_get_flags(t->box, &flags, &keywords) < 0) + if (acl_save_get_flags(t->box, &ctx->flags, &ctx->keywords) < 0) return -1; - return abox->module_ctx.super.copy(t, mail, flags, keywords, dest_mail); + return abox->module_ctx.super.copy(ctx, mail); } static int