On Wed, Dec 10, 2003 at 12:34:37AM +0100, Peter Nilsson wrote: > Hi the problem was not solved by upgrading > > it seems like sqwebmail don�t update the quota files....the quota is ok > until a user deletes mail ind sqwebmail....how can i configure sqwebmail to > update the quotafiles....is it the file maildirsize?
So what exactly is the problem when you delete a mail in sqwebmail? Is it that the quota does not go down, when you expect it to? Did you compile with the '--with-trashquota' argument to ./configure? Apart from that, there is no configuration option which affects quota calculation that I know of. The file is indeed maildirsize. If you 'cat' it you will see: - the first line is the quota (bytes and messages) - the second line is the number of bytes/messages in the mailbox at the time maildirsize was created - subsequent lines are deltas to this value; each time a message is added or removed, a new line is added with a pair of positive or negative numbers - once the file gets to 200 lines, it is replaced with a new file So the quota sqwebmail displays is calculated by adding together lines 2..N in this file. If you can demonstrate that sqwebmail displays a value which is *different* from the sum of those values, then you have found a bug. If you can demonstrate that some user action (such as deleting a mail) does not correctly append the right new line to maildirsize, then you have also found a bug. Brian. > > Brian Candler writes: > > >On Sun, Dec 07, 2003 at 09:58:32AM +0100, Peter Nilsson wrote: > >>My users get wrong quota info in the front page when they are logged in > >>sqebmail....it seems like sqwebmail is slow to update it to the corret > >>value. > > > >It gets updated when a new message is delivered from an MTA which properly > >supports the 'maildir++' extensions. > > > >If you are delivering mail into the mailbox with a Maildir but not > >Maildir++ > >application (such as qmail), then try configuring it to deliver using the > >external program 'deliverquota' (part of courier-imap) or 'maildrop' > >(separate package from the same author) > > > >>How does sqwebmail get its quota info? > > > >See the file maildir/README.maildirquota.txt in the source, which also > >explains how to configure qmail to use deliverquota. > > > >Regards, > > > >Brian. > > >
