[Dovecot] Get the size of a maildir

Nicolas Letellier nicolas at nicoelro.net
Thu Jun 5 13:42:16 EEST 2008


Le Thu, 5 Jun 2008 13:32:59 +0300,
Timo Sirainen <tss at iki.fi> a écrit :

> On Jun 5, 2008, at 1:25 PM, Nicolas Letellier wrote:
> 
> >> printf "1 getquotaroot inbox\n" | dovecot --exec-mail imap
> >>
> >> (or depending on your settings change $USER, $HOME or use netcat
> >> and master user login)
> >>
> > Thanks for the response. It seems to be a good solution! But I don't
> > know how use this tool. My mailboxes are in :
> > /var/mail/vmails/domain.tld/username
> 
> And you use a single UID to access them?
> 
> > How know the size of username at domain.tld with dovecot -exec-mail
> > imap?
> 
> 
> See if this works (run as the same system user as mailboxes are  
> normally accessed with):
> 
> export USER=username at domain.tld
> printf "1 getquotaroot inbox\n" | dovecot --exec-mail imap
> 
> If not, post your dovecot -n output.
It works perfectly. I made a shell script to get maildirsize, it's ok.

Thanks for the tip :-)


-- 
 - Nicolas.


More information about the dovecot mailing list