Displaying 1 result from an estimated 1 matches for "quotasync".
Did you mean:
quota_sync
2009 Jun 09
1
Resync quota to mysql script
...l and there is no magic command to
recalculate the quota (or is there?).
So I wrote this little python script to do this, maybe someone finds it
useful.
It can output the sql statements (dovecot 1.0/1.1 and 1.2 format) or
just print out quota usage to console.
Download at : http://wgwh.ch/dovecot/quotasync.py , run-at-own-risk and
do-whith-the-code-what-you-want applies.
# cd /path/to/a/Maildir
# quotasync.py
INBOX : 21 messages 516739 bytes
.postfix : 982 messages 7572888 bytes
.bn_archiv : 77 messages 2092454 bytes
.python : 2748 messages 19877135 bytes
.testfolder.subfolder1.subsubfol...