/* root_dir points to a unique directory */
MAIL_STORAGE_CLASS_FLAG_UNIQUE_ROOT = 0x02,
/* mailbox_open_stream() is supported */
- MAIL_STORAGE_CLASS_FLAG_OPEN_STREAMS = 0x04
+ MAIL_STORAGE_CLASS_FLAG_OPEN_STREAMS = 0x04,
+ /* never use quota for this storage (e.g. virtual mailboxes) */
+ MAIL_STORAGE_CLASS_FLAG_NOQUOTA = 0x08
};
struct mail_storage {
mlist->module_ctx.super = *v;
list->vlast = &mlist->module_ctx.super;
- list->ns->flags |= NAMESPACE_FLAG_NOQUOTA;
v->get_mailbox_flags = virtual_list_get_mailbox_flags;
MODULE_CONTEXT_SET(list, virtual_mailbox_list_module, mlist);
struct mail_storage virtual_storage = {
.name = VIRTUAL_STORAGE_NAME,
- .class_flags = 0,
+ .class_flags = MAIL_STORAGE_CLASS_FLAG_NOQUOTA,
.v = {
NULL,