Function: Optimizes the Apple Mail database, drastically improving performance (your mileage may vary). Quits and relaunches Mail during execution.
Author: Automator World
Notes: This workflow is based on a discussion at Hawk Wings. This workflow is probably best used as an iCal plug in, set to run once a month or so:
.1 update: no longer requires separate “Quit” action.