**Function:** Optimizes the Apple Mail database, drastically improving performance (your mileage may vary). Quits and relaunches Mail during execution.
**Author**: [Automator World](http://www.automatorworld.com)
**Notes**: This workflow is based on a [discussion](http://www.hawkwings.net/2007/03/01/a-faster-way-to-speed-up-mailapp/) at Hawk Wings. This workflow is probably best used as an iCal plug in, set to run once a month or so:
1. Open the workflow in Automator, and go to *File > Save As Plug-in...*
2. Choose *iCal Alarm* from the pop-up. iCal will launch, placing the workflow on today's calendar box.
3. Select the *Repeat* pop-up from the day's info window, picking the frequency desired (once a month is probably fine). Also set a time of day it won't be obtrusive, like 2am.
.1 update: no longer requires separate "Quit" action.