Re: [Dovecot] Quota for Shared Folders

2009-04-22 Thread Anton Dollmaier

Hi Timo,



Actually virtual Dovecot quota completely ignores shared/public
namespaces currently. The only reason why you seem to notice a "combined
quota" is most likely because of filesystem quota limit exceeding.


Or the local quota was exceeded too, so the mail was deferred anyway.


So I suppose there needs to be some kind of a per-namespace quota that
could be defined.. Maybe something like:

quota = maildir:Shared quota:ns=shared/
quota_rule = *:storage=200M

Yes, that looked like an easy thing to implement.


this works really great, I only needed to figure out the right 
namespace-setting: it must match the "prefix"-definition in the 
namespace, so with "prefix = shared." (courier-migration) it has to be 
"ns=shared.". The quotadict also reports diskusage really fast to the 
database, with the right amounts for the shared quotas.



imap_quota shows shared quotas too, thunderbird displays a nice 
percentage-graph with different local and shared-values.



thanks for the really fast response and implementation!


best regards,

Anton


Re: [Dovecot] Quota for Shared Folders

2009-04-16 Thread Timo Sirainen
On Thu, 2009-04-16 at 21:33 -0400, Timo Sirainen wrote:
> Yes, that looked like an easy thing to implement. Added to v1.2:
> 
> http://hg.dovecot.org/dovecot-1.2/rev/16c286aee307

Actually a couple of more commits after that were also needed.



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Quota for Shared Folders

2009-04-16 Thread Timo Sirainen
On Wed, 2009-04-15 at 02:39 +0200, Anton Dollmaier wrote:
> As my tests have shown, dovecot uses a different approach to the 
> quota-issue: users can always move their mails from local folders to the 
> shared namespace, regardless of the shared quota. The quota itself is 
> only checked when receiving new mails, where the combined quota (local + 
> shared) may not be exceeded. If it is, the mail is not delivered to the 
> mailbox.

Actually virtual Dovecot quota completely ignores shared/public
namespaces currently. The only reason why you seem to notice a "combined
quota" is most likely because of filesystem quota limit exceeding.

So I suppose there needs to be some kind of a per-namespace quota that
could be defined.. Maybe something like:

quota = maildir:Shared quota:ns=shared/
quota_rule = *:storage=200M

Yes, that looked like an easy thing to implement. Added to v1.2:

http://hg.dovecot.org/dovecot-1.2/rev/16c286aee307


signature.asc
Description: This is a digitally signed message part