[Dovecot] Get the size of a maildir
tss at iki.fi
Thu Jun 5 13:11:23 EEST 2008
On Thu, 2008-06-05 at 11:50 +0200, Nicolas Letellier wrote:
> I would like to know it a 'proper' solution exist to get the size (in
> MB) of a maildir. Actually, to get it, I do a 'du -sh' but I'm not sure
> it is a good solution. And it does not return the same value than
> Is there a command, a tool, in Dovecot to get it?
> There is the maildirsize but it's very difficult to get the value with
> a script shell and with this file.
How about using IMAP? Like:
printf "1 getquotaroot inbox\n" | dovecot --exec-mail imap
(or depending on your settings change $USER, $HOME or use netcat and
master user login)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20080605/eed70a0e/attachment.bin
More information about the dovecot