move mail items on close

experts,

i've been asked to clear my deleted items folder in outlook 2003 as my company wants to permantly delete those items on a nightly basis. I'd like to script outlook to move all items from "deleted items" to a folder "deleted items - kept" when i exit outlook or on a schedule. i've built the routine, and tested it fine, but it fails on the quit event from outlook. I'm guessing because outlook closes before the quit event is fired. is there a way around this?

i've seen some posts where people suggest firing the module when a reminder is triggered, but that's not ideal for me.

any help would be much appreciated.
telliot79Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

apache09Commented:
No need for a script to do this.
Outlook has this as built in functionality

IN Outlook, go to Tools>Options>Other

Check Empty Deleted Items on Close
telliot79Author Commented:
i don't want to empty the folder, i want to move them from the deleted items to another folder.
telliot79Author Commented:
doesn'[t look like this has been done. I've created a hotkey in stead and assigned it to a button i've created that does the same thing. not ideal, but will have to do.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
telliot79Author Commented:
doesn't look like it can be done so i've found a close alternative.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Outlook

From novice to tech pro — start learning today.