dovecot-2.0: virtual: Set MAIL_STORAGE_CLASS_FLAG_NOQUOTA to sto...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Nov 4 20:56:51 EET 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/37833c393ef8
changeset: 12390:37833c393ef8
user: Timo Sirainen <tss at iki.fi>
date: Thu Nov 04 18:56:13 2010 +0000
description:
virtual: Set MAIL_STORAGE_CLASS_FLAG_NOQUOTA to storage's class_flags.
diffstat:
src/lib-storage/mail-storage-private.h | 4 +++-
src/plugins/virtual/virtual-storage.c | 3 +--
2 files changed, 4 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r 16abe905f897 -r 37833c393ef8 src/lib-storage/mail-storage-private.h
--- a/src/lib-storage/mail-storage-private.h Thu Nov 04 17:55:47 2010 +0000
+++ b/src/lib-storage/mail-storage-private.h Thu Nov 04 18:56:13 2010 +0000
@@ -54,7 +54,9 @@
/* 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 {
diff -r 16abe905f897 -r 37833c393ef8 src/plugins/virtual/virtual-storage.c
--- a/src/plugins/virtual/virtual-storage.c Thu Nov 04 17:55:47 2010 +0000
+++ b/src/plugins/virtual/virtual-storage.c Thu Nov 04 18:56:13 2010 +0000
@@ -401,7 +401,6 @@
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);
@@ -488,7 +487,7 @@
struct mail_storage virtual_storage = {
.name = VIRTUAL_STORAGE_NAME,
- .class_flags = 0,
+ .class_flags = MAIL_STORAGE_CLASS_FLAG_NOQUOTA,
.v = {
NULL,
More information about the dovecot-cvs
mailing list