quota-warning: possible to have size also?

Alex JOST jost+lists at dimejo.at
Mon Mar 6 10:24:55 UTC 2017


Am 06.03.2017 um 10:39 schrieb chaouche yacine:
> Hi,
>
> I'am using a Maildir++ based quota setting which creates a maildirsize file in every Maildir. The first two lines of this file are the maximum quota in bytes then the actual consumption in bytes and number of messages, like so :
>
>
> 1073741824S
> 379317999 5169
>
>
>
> This means this user has a quota of 1Gb and he is using ~ 379 Mb (you have to divide by 1024 to be more precise)
>
> Since the script receieves the user as second argument, you can deduce it's current quota size and restriction by reading the maildirsize file (if you have it). I think you can do the same if your quota is in the database (querying).
>
>
> This a piece of script I wrote once that shows the value of quota used and quota max (both in megas and perecent) that might help you if you know your way through bash scripting :

I might be missing something but what's the advantage over doveadm?

	doveadm quota get -A

-- 
Alex JOST


More information about the dovecot mailing list