virtual-save.c revision c9c4494be2e6e8664ed2a37f74c2989c9b0ffe65
e0ba54c7f985fc403b41c6e36d6a7f44908b23f0Timo Sirainen/* Copyright (c) 2009-2017 Dovecot authors, see the included COPYING file */
e0ba54c7f985fc403b41c6e36d6a7f44908b23f0Timo Sirainenvirtual_save_alloc(struct mailbox_transaction_context *_t)
e0ba54c7f985fc403b41c6e36d6a7f44908b23f0Timo Sirainen struct virtual_mailbox *mbox = (struct virtual_mailbox *)_t->box;
f6ae9ae80a1fcf6c8f45ab759f0074caaa66c9c8Timo Sirainen struct mailbox_transaction_context *backend_trans;
f6ae9ae80a1fcf6c8f45ab759f0074caaa66c9c8Timo Sirainen ctx = (struct virtual_save_context *)_t->save_ctx;
ae9691f7ef36d5272d72c90fa51393dfea5dd126Timo Sirainen virtual_backend_box_open(mbox, mbox->save_bbox) < 0) {
2eccb2637d0153bb7f9ad39a70f254cece74342cTimo Sirainen errstr = mailbox_get_last_error(mbox->save_bbox->box,
7877db7b5daad125b6cb3e015574f33871c9a51bTimo Sirainen virtual_transaction_get(_t, mbox->save_bbox->box);
7877db7b5daad125b6cb3e015574f33871c9a51bTimo Sirainen ctx->backend_save_ctx = mailbox_save_alloc(backend_trans);
7877db7b5daad125b6cb3e015574f33871c9a51bTimo Sirainen virtual_backend_box_accessed(mbox, mbox->save_bbox);
const char *const *kwp;
return NULL;
keywords);
int ret;
return ret;