Can somebody post details for how to get maildir++ quotas working in the latest CVS? I have tried but can't get the CAPABILITY string to show "QUOTA"; and the GETQUOTAROOT command is recognized, but returns nothing... 2 GETQUOTAROOT INBOX * QUOTAROOT "INBOX" "" * QUOTA "" () 2 OK Getquotaroot completed. These are the settings I have... am I missing something? protocol imap { mail_plugins = imap_quota quota mail_plugin_dir = /usr/lib/dovecot/imap } plugin { quota = maildir imap_quota = maildir } Here are some more details: Dovecot is creating the maildirsize file in my maidir, and it seems to show correct storage used calculations, but the first line which should contain my storage limits is blank. So I suspect that I am not returning a valid quota value from the user database. I am returning what my old Courier-IMAP wants to see "1073741824S,4000C"... if the format for Dovecot is different, what should the format be? So there are two problems that I am trying to resolve, but I'm not sure how to go about fixing it. Any help would be greatly appreciated: (1) Dovecot isn't announcing QUOTA support in the capability string. (2) Dovecot isn't getting a valid quota limit, which I assume is breaking the GETQUOTAROOT command. Thanks, Bill
Bill Boebel wrote:>Can somebody post details for how to get maildir++ quotas working in the >latest CVS? > >I have tried but can't get the CAPABILITY string to show "QUOTA"; and the >GETQUOTAROOT command is recognized, but returns nothing... > > 2 GETQUOTAROOT INBOX > * QUOTAROOT "INBOX" "" > * QUOTA "" () > 2 OK Getquotaroot completed. > >These are the settings I have... am I missing something? > > protocol imap { > mail_plugins = imap_quota quota > mail_plugin_dir = /usr/lib/dovecot/imap > } > plugin { > quota = maildir > imap_quota = maildir > } > >Here are some more details: > >Dovecot is creating the maildirsize file in my maidir, and it seems to >show correct storage used calculations, but the first line which should >contain my storage limits is blank. So I suspect that I am not returning >a valid quota value from the user database. I am returning what my old >Courier-IMAP wants to see "1073741824S,4000C"... if the format for Dovecot >is different, what should the format be? > >So there are two problems that I am trying to resolve, but I'm not sure >how to go about fixing it. Any help would be greatly appreciated: > >(1) Dovecot isn't announcing QUOTA support in the capability string. > >(2) Dovecot isn't getting a valid quota limit, which I assume is breaking >the GETQUOTAROOT command. > >Thanks, >Bill > > >Bill, As far as I can tell, I'm seeing the same thing you are.
> ...snip... > So there are two problems that I am trying to resolve, but I'm not sure > how to go about fixing it. Any help would be greatly appreciated: > > (1) Dovecot isn't announcing QUOTA support in the capability string.Timo posted the following patch from Joshua Goodal a while ago to get the QUOTA added to the capability string: --- 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 know for sure that it still applies, but it looks promising.> (2) Dovecot isn't getting a valid quota limit, which I assume is breaking > the GETQUOTAROOT command.No comment. Regards, Robin -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 187 bytes Desc: OpenPGP digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20060310/3256e893/attachment.bin>
Bill Boebel <bill <at> webmail.us> writes:> > Can somebody post details for how to get maildir++ quotas working in the > latest CVS? >SNIP...> > (1) Dovecot isn't announcing QUOTA support in the capability string. > > (2) Dovecot isn't getting a valid quota limit, which I assume is breaking > the GETQUOTAROOT command. > > Thanks, > Bill > >Hi Bill, (2) I think this is the issue here. plugin { quota = maildir imap_quota = maildir } Shuld be for example (works for me). plugin { # 1 GB quota limit quota = maildir:storage=1024000 imap_quota = maildir:storage=1024000 } Have a look at http://wiki.dovecot.org/Quota (1) Might be fixed by (2). Cheers, Marcus