]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
virtual: STATUS command on a virtual mailbox crashed.
authorTimo Sirainen <tss@iki.fi>
Tue, 9 Sep 2008 08:46:18 +0000 (11:46 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 9 Sep 2008 08:46:18 +0000 (11:46 +0300)
--HG--
branch : HEAD

src/plugins/virtual/virtual-sync.c

index 67dc4372f38e88aa144d087636058587f3c6e525..49472003bd3127a6431dc36769ee6a0d2003997e 100644 (file)
@@ -851,6 +851,9 @@ static int virtual_sync_backend_box(struct virtual_sync_context *ctx,
        struct mailbox_status status;
        int ret;
 
+       if (!bbox->box->opened)
+               index_storage_mailbox_open(ibox);
+
        /* if we already did some changes to index, commit them before
           syncing starts. */
        virtual_backend_box_sync_mail_unset(bbox);