[Dovecot] Get the size of a maildir
Timo Sirainen
tss at iki.fi
Thu Jun 5 13:32:59 EEST 2008
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20080605/92d4b5c4/attachment.bin
More information about the dovecot
mailing list