-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Wouter van der Schagt wrote:
> Good morning all,
> 
> Am I correct in assuming the the vusaged can be used for retrieving the
> current amount of storage used of a particular mailbox? If so, where

You are correct.  It can also return usage for a particular domain.  Instead of
querying with 'u...@domain', query with '@domain'.

> does this information come from, is it the actual size used on the disk
> or is it based on a Maildir calculation? Is there any information /
> documentation for this available already?

Basically, it's adding up the contents of a user's Maildir and caching this
information.  It then updates this cache with changes it sees.  It's a bit
more complicated than that, but that's essentially what it's doing.

As far as how it calculates Maildirs, it will use the Maildir++ formatted
filenames to cut down on stat() calls.  You can enable and disable this in
vusaged.conf, but it's on by default.  It also optionally evaluates the
size of directory entries -- again, on by default.  So, if a user has
100k files in a single Maildir directory, the 'new' or 'cur' directory
entry will be quite large; it will factor this in.

Is that what you were looking for, or were you looking for something more
specific?
- --
/*
    Matt Brookings <m...@inter7.com>       GnuPG Key D9414F70
    Software developer                     Systems technician
    Inter7 Internet Technologies, Inc.     (815)776-9465
*/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknbZW8ACgkQ6QgvSNlBT3DLqgCffA/h6WB2bf7l5KETdtdtG9C4
wFoAn00D0cxRHpGoF/eDx4XjvWh2q1FG
=DiVj
-----END PGP SIGNATURE-----

Reply via email to