{
struct imapc_mailbox *mbox = (struct imapc_mailbox *)box;
struct imapc_open_context ctx;
+ bool examine;
if (index_storage_mailbox_open(box, FALSE) < 0)
return -1;
/* We don't actually want to SELECT the mailbox. */
return 0;
}
+ examine = (box->flags & MAILBOX_FLAG_READONLY) != 0 &&
+ (box->flags & MAILBOX_FLAG_DROP_RECENT) == 0;
mbox->opening = TRUE;
ctx.mbox = mbox;
ctx.ret = -2;
mbox->client_box =
imapc_client_mailbox_open(mbox->storage->client,
- box->name, FALSE,
+ box->name, examine,
imapc_mailbox_open_callback,
&ctx, mbox);
while (ctx.ret == -2)