Before I get too far into writing something myself, I would like to ask if there's any existing code or methods to track mailbox size and growth over time.
I'd like to track the average size of all mailboxes (not their quota but actual usage in kB) and then compare that on a daily/weekly/monthly basis to the previous time period.
I would think this data would be derived from quota.db. That has all the info for mailbox size/quota/# of messages and last access (in order to optionally exclude "inactive" mailboxes as well as create separate growth values from IMAP users vs POP only).
I'm reasonably confident I could craft this kind of report or data input and analysis mechanism but I would like to know if there's anything already out in the wild that could do this.