On Thu, Jan 22, 2009 at 2:17 AM, Cottalorda Sébastien
<scottalo...@monaco-parkings.mc> wrote:
> Hi all,
>
> I manage to make courier-IMAP works with quota throught the GETQUOTAROOT
> imap command. I just need to use maildirmake command on each email folder 
> (example
> maildirmake -q 100000000S /home/vmailer/myDomain/u...@mydomain )
> It then create a maildirsize file on each folder, that file is usefull for
> make GETQUOTAROOT imap command work.
>
> But i do not explain why there is only this file system quota support and
> not mysql support.  Authdaemon use mysql to get quotas, so do postfix.

To get what the max quota is during delivery, yes.  However, to get
what the current status of the mailbox is, it has to read where that
data is stored, which is the Maildir/maildirsize file.  When maildrop
or postfix or exim (whatever method you use) delivers that message to
the mailbox, the Maildir/maildirsize file is updated (if it's
configured properly).  Courier-imap itself doesn't seem to ever update
the quota limit that is recorded in the Maildir/maildirsize file, only
the delivery agent updates the limits.

Look at the command and what it is supposed to return:

A003 GETQUOTAROOT INBOX
* QUOTAROOT INBOX ""
* QUOTA "" (STORAGE 10 512)

The number "512" means that it has 512K set as the mailbox size, and
10 means that the mailbox is using 10K worth of space.  The imap
daemon gets both of those bits of information from the
Maildir/maildirsize file.

If you changed the quota in the database and need to update the
maildirsize file, just send a quick email to the account.  If your
delivery agent is not updating the file, then it's not configured
correctly (i.e. not configured to match what you are expecting it to
do).

-- 
Regards...      Todd
All truth passes through three stages. First, it is ridiculed. Second,
it is violently opposed. Third, it is accepted as being self-evident.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to