[Dovecot] Questions regarding quota

Joshua Goodall joshua at roughtrade.net
Fri Jan 6 02:46:23 EET 2006


hi stian,

It does work but the syntax has changed.  You now configure it as
quotaclass:quotaclassdata e.g.

dirsize:/var/mailstore/bob at example.com/:storage=102400

you may also need this patch:

--- imap-quota/imap-quota-plugin.c      14 Dec 2005 21:28:44 -0000      1.2
+++ imap-quota/imap-quota-plugin.c      6 Jan 2006 00:43:14 -0000
@@ -189,4 +189,5 @@ void imap_quota_plugin_init(void)
 	command_register("GETQUOTA", cmd_getquota);
 	command_register("SETQUOTA", cmd_setquota);
+	str_append(capability_string, " QUOTA");
 }

I don't see any doco on this which I presume means tss may expect it
to change again.  So keep an eye on changes in src/plugins :)

all the best

joshua.

On Tue, Jan 03, 2006 at 09:41:43PM +0100, Stian Jordet wrote:
> Since noone answers, is noone using the quota plugin? Is it working at
> all, I wonder?
> 
> Whatever I do, I only get "OK No quota.".
> 
> a001 OK Logged in.
> a002 getquota ""
> a002 OK No quota.
> a002 setquota "" (Storage 512)
> a002 OK No quota.
> a003 getquota ""
> a003 OK No quota.
> 
> Best regards,
> Stian
> 
> l??r, 31,.12.2005 kl. 01.31 +0100, skrev Stian Jordet:
> > Hi,
> > 
> > I have some trouble trying to test the quota plugin.
> > 
> > First off all, it says in the wiki: "Dovecot 1.0 supports quota using a
> > quota plugin. It's currently discussed in Dovecot LDA page and it
> > supports only very simple quota calculation which is suitable only for
> > mboxes. Maildir++ quota support will come later."
> > 
> > Does that mean that it won't work at all with Maildir++, or just that
> > it's slow?
> > 
> > Second; there are two plugins? One in src/plugins/quota and one ine
> > src/plugins/imap-quota. What's the difference? Is one for imap-quota and
> > the other for fs-quota? (I would love that!)
> > 
> > But third and most importantly; I can't get it too work. I'm using CVS
> > from tonight (which fixed the missing symbol bug). But neither when I'm
> > using static userdb nor LDAP as explained in the wiki I can't get it to
> > work.
> > 
> > I'm not really sure of the getquota syntax, but whatever I try, I get:
> > 
> > a OK No quota.
> > 
> > So please, enlighten me! :)
> > 
> > Best regards,
> > Stian
> > 
> > 
> 

-- 
Josh "Koshua" Goodall                      "as modern as tomorrow afternoon"
joshua at roughtrade.net                                       - FW109


More information about the dovecot mailing list