const char *from_envelope, *guid;
time_t received_date;
- ctx->copying = TRUE;
+ ctx->copying_via_save = TRUE;
/* we need to open the file in any case. caching metadata is unlikely
to help anything. */
bool (*part_is_attachment)(struct mail_save_context *ctx,
const struct mail_attachment_part *part);
- /* we came here from mailbox_copy() */
- unsigned int copying:1;
+ /* mail was copied using saving */
+ unsigned int copying_via_save:1;
};
struct mailbox_sync_context {
{
union mailbox_module_context *lbox =
NOTIFY_CONTEXT(ctx->transaction->box);
- struct mail *dest_mail = ctx->copying ? NULL : ctx->dest_mail;
+ struct mail *dest_mail = ctx->copying_via_save ? NULL : ctx->dest_mail;
if (lbox->super.save_finish(ctx) < 0)
return -1;
return -1;
/* if copying used saving internally, we already checked the quota */
- return ctx->copying ? 0 : quota_check(t, ctx->dest_mail);
+ return ctx->copying_via_save ? 0 : quota_check(t, ctx->dest_mail);
}
static int