I want to maintain a free space of 10% for every mailbox user by deleting old emails.
Logic- when the mailbox reaches more then 90% or 100% full , I want to run a script first to check the mailbox size and delete some of the old emails from that user until the mailbox reaches at 10% free. ( Delete one email , check the size,if
>90% , delete the next email ,then loop it till the mailbox size=<90% of the total sze)