When this flag is enabled, the mailbox is automatically created when it is opened (if possible and appropriate).
{
if (box->inbox_user)
return TRUE;
+ if ((box->flags & MAILBOX_FLAG_AUTO_CREATE) != 0)
+ return TRUE;
return box->set != NULL &&
strcmp(box->set->autocreate, MAILBOX_SET_AUTO_NO) != 0;
}
The backend shouldn't treat it as corruption if a mail body isn't
found. */
MAILBOX_FLAG_USE_STUBS = 0x800,
+ /* Mailbox is created implicitly if it does not exist. */
+ MAILBOX_FLAG_AUTO_CREATE = 0x1000,
};
enum mailbox_feature {