Hi All I'm really busy adding features to dovecot running on my dev box to later move into prod. I saw where public mailbox quotas was added to 1.2 Does anyone have this working? I haven't been able to find docs on that as of yet.
On Thu, 2009-10-22 at 11:32 -0500, Peter Fraser wrote:> Hi All > > I'm really busy adding features to dovecot running on my dev box to > later move into prod. I saw where public mailbox quotas was added to > 1.2 Does anyone have this working? I haven't been able to find docs on > that as of yet.I suppose you mean something like: namespace public { prefix = Public/ .. } quota = .. quota2 = maildir:Public quota:ns=Public/ This creates a separate shared quota for all mailboxes in Public/ namespace. I've no idea if it really works, but the code is there. Let me know if it doesn't. :) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20091027/1ee958c6/attachment-0002.bin>
Hi folks,> I suppose you mean something like: > > namespace public { > prefix = Public/ > .. > } > > quota = .. > quota2 = maildir:Public quota:ns=Public/We have this running in exactly that way.> This creates a separate shared quota for all mailboxes in Public/ > namespace. I've no idea if it really works, but the code is there. Let > me know if it doesn't. :)it does work :) At least, with my tests at the beginning: public quota of 1kb, now a move of a local mail to the shared namespace fails, RoundCube and Thunderbird show the correct message. Customers didn't complain after the dovecot 1.2.6-upgrade, so I assume it's still working. And, even more: ThunderBird (also with raw IMAP) show the shared quota as being different than the local quota. best regards, Anton
> OK thanks just one last query, would the quota rule be something like this? > quota_rule2 = Public*:storage=100M==========namespace public { prefix = shared. separator = . (...) } dict { quotadict = mysql:/etc/dovecot/dovecot-dict-quota.conf expire = mysql:/etc/dovecot/dovecot-dict-expire.conf } quota = dict:INBOX::proxy::quotadict quota2 = dict:shared:%d:ns=shared.:proxy::quotadict quota_rule = *:storage=50M:messages=1000 quota_rule2 = Trash:storage=50M:messages=100 quota2_rule = *:storage=100M:messages=1000 ========== this currently works - you must use the prefix of the namespace as parameter in the quota-definition.