[Dovecot] Quota monitoring

Vlamsdoem vlamsdoem at gmail.com
Thu Apr 22 14:02:45 EEST 2010


On 22/04/10 10:57, Steffen Kaiser wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Wed, 21 Apr 2010, Vlamsdoem wrote:
>
>> No only the maximum quota for each user.
>
> So, where are your current quota values located?
>
> There had been mentioned to use SQL, where you can easily get your 
> quota via SQL.
>
> Regards,
>
> - -- Steffen Kaiser
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iQEVAwUBS9APgb+Vh58GPL/cAQLsMwf8DxGNpPf5/tup6S+QQsVAOBOtgveKGXno
> 19MYefBMK1OJVzurf6DpFXDW8KkpXTkcX5nGVhpFKexytMyNF4qnRWM6JtIld+8F
> hJaIcdeH/TL6l1pS3veydF8J8C67RbudcgY441bn4dv6TuIl/pcoJadij7mwiVSP
> oHKPgXJP5nqkgqmW7tFogeSNpCuOlK/7YX2N/PDArIZgw08V/TsnZjTVOzNkp6u8
> p1iLvI0MplJUXD9iThDhe4qwERfydgUslfEDpO1lOIYqVHKPqv9Q4HQx+Q0ZpEwD
> ooqyJUPpk7TTIdzbCQ65kqAnYAE9SrALsOz6uXzsrKKaRqghBrlcow==
> =Owfw
> -----END PGP SIGNATURE-----
>
The current values of the quota is located in the maildirsize file in 
each user mailbox directory.
I can do a script to parse every maildirsize file but I don't understand 
the format of this file.
I read in the documentation that the first line is the maximum storage 
limit in bytes, but I don't know what the other lines means.
Here is an example of a maildirsize file:

1024000000S
24140481 824
2580 1
655 1
975 1
975 1
975 1
975 1
1434 1
610 1
3577 1


Regards,


More information about the dovecot mailing list