Re: [Dovecot] Public Folder Quotas

2009-10-29 Thread Anton Dollmaier

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.


Re: [Dovecot] Public Folder Quotas

2009-10-29 Thread Peter Fraser
The public mailbox quota works fine. Thanks to ll who helped. I'm running 1.2.4
This is what I did to get a public folder called newsletters with
quota of 100M

1. Create a maildir called newsletters
2. Entered this to define the namespace in dovecot.conf

namespace public {
  separator = /
  prefix = newsletters/
  list = yes
  subscriptions = yes
  location = maildir:/home/public/newsletters
}

3. quota3 = maildir:Public quota:ns=newsletters/
4. quota3_rule = *:storage=100M

Thanks again.

On Thu, Oct 29, 2009 at 10:05 AM, Anton Dollmaier
antondollma...@aditsystems.de wrote:
 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.



Re: [Dovecot] Public Folder Quotas

2009-10-27 Thread Timo Sirainen
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. :)


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


Re: [Dovecot] Public Folder Quotas

2009-10-27 Thread Anton Dollmaier

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


[Dovecot] Public Folder Quotas

2009-10-22 Thread Peter Fraser
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.