We have a client who uses an IMAP account on Outlook 2007. His .pst is now 20gb and had recently become corrupted. This is fixed but to prevent it happening again, we need to make it smaller.
The only way to do this he approves of is to delete all emails except from 10 or 15 senders in the inbox (other folders can be cleared for everyone).
There are many ways to do this, I am aware, but the reason I am posting this here is because of certain problems associated with them. If we were to filter out all the emails he wants to keep, select-all and delete, it will take a very long time, will be liable to crash, and has no error reporting - I've had experience deleting thousands of items at a time with Outlook and got into trouble more often than I'd like! If we were to do it 500 emails at a time it would be a huge and inconvenient job. We'd run into the same issues moving the keep-emails out of the inbox first.
We are thinking about using a macro. It would need to have good error catching, be optimised to work efficiently i.e. delete the emails in a resource-friendly way, and hopefully report progress and log errors. We could probably make this ourselves but we would still recommend your ideas on this matter.
Obviously we would back up the .pst before doing anything.
So the actual question is - what would you say is the best/fastest/safest way to do this? If you are going to recommend a macro, is there any expert advice about things we may not have thought about to make sure it runs clean? Otherwise, if manually deleting 500 at a time is the way to go then so be it.
A general advice question really.
Really appreciate it and so far very much enjoying my time on this forum!