Skip to content

Commit

Permalink
#328: fix copy move
Browse files Browse the repository at this point in the history
  • Loading branch information
jrse committed May 19, 2022
1 parent 95f6158 commit 7eccb99
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/storage-rbox/rbox-copy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,10 @@ static int rbox_mail_storage_try_copy(struct mail_save_context **_ctx, struct ma
i_debug("namespaces: src=%s, dst=%s", ns_src.c_str(), ns_dest.c_str());
#endif
if(ctx->copy_src_mail->box->virtual_vfuncs != NULL) {
i_error("copy from virtual mailbox not supported");
r_ctx->mbox->storage->storage.error_string = "VirtualMailbox: unsupported Origin. Copy from virtual mailbox not possible";
return -1;
i_debug("copy from virtual mailbox requires us to create the rados mail structure here!");
if(rmail->rados_mail == nullptr){
rmail->rados_mail = r_storage->s->alloc_rados_mail();
}
}

if (r_ctx->copying == TRUE) {
Expand Down

0 comments on commit 7eccb99

Please sign in to comment.