Re: [Dovecot] how to disable quota for second namespace?

2011-09-26 Thread Udo Lembke


Am 20.09.2011 17:36, schrieb Udo Lembke:



Hi all,
I have a second namespace as archive, where no quota should be active 
(work with type = shared).

But if I change the type to private the quota will allways count.


Hi,
for reference only (if someone find this post) with help in the 
irc-channel I got the right configuration:


plugin {
  quota = maildir:User quota:ns=
  quota2 = maildir:Archiv quota:ns=archiv/%u/
}
plugin {
  quota_rule = *:storage=500M
  quota_rule2 = Trash:storage=+100M
  quota_rule3 = Sent:storage=+50M
  quota_rule4 = ns=archiv/%u/:ignore
}

The :ns= do the right trick!

Here the result:
doveadm quota get -u t...@example.com
Quota name  
Type  Value  Limit  %
User quota  
STORAGE   95132 204800 46
User quota  
MESSAGE6423  -  0
Archiv quota
STORAGE 3290972  -  0
Archiv quota
MESSAGE  136950  -  0


Udo


[Dovecot] how to disable quota for second namespace?

2011-09-20 Thread Udo Lembke


Hi all,
I have a second namespace as archive, where no quota should be active 
(work with type = shared).

But if I change the type to private the quota will allways count.

My dovecot version is the 2.0.13.

I have tried things like this:
plugin {
  quota_rule = *:storage=500M
  quota_rule2 = Trash:storage=+100M
  quota_rule3 = Sent:storage=+50M
  quota_rule4 = ns=archiv/%u/:ignore
}

It's also doesn't work with quota_rule4 = archiv/%u/:ignore

The namespace:
namespace {
   type = private
   separator = /
   prefix = archiv/%u/
   location = 
maildir:/var/data/archiv/%d/%n:INDEX=/var/data/indexes/archiv/%u:LAYOUT=fs

   inbox = no
   hidden = no
   subscriptions = no
   list = yes
}

Even if I define the namespace for quota I see the quota-value also in 
the root:


plugin {
  quota = maildir:User quota
  quota2 = maildir:Archiv quota:ns=archiv/%u/
}

doveadm quota get -u t...@example.com
Quota name
Type  Value  Limit   %
User quota
STORAGE 1587135 512000 309
User quota
MESSAGE   13346  -   0
Archiv quota  
STORAGE 1359379  -   0
Archiv quota  
MESSAGE   10577  -   0


du -ks /var/data/mail/example.com/test
234364  /var/data/mail/example.com/test

du -ks /var/data/archiv/example.com/test
1383792 /var/data/archiv/example.com/test

Now is the big question, how can I reach such an output?
doveadm quota get -u t...@example.com
Quota name 
Type  Value  Limit  %
User quota 
STORAGE  227756 512000 44
User quota 
MESSAGE2769  -  0
Archiv quota   
STORAGE 1359379  -  0
Archiv quota   
MESSAGE   10577  -  0


I can't believe that's only possible with a shared namespace, or?

Any hints are welcome.


Best regards

Udo