AppleScripts
Here are some AppleScript scripts that various people have written. Also check out MacScripter.net for a huge number of scripts for many different applications.
- Mail.app - Archive Message
- Moves the selected message(s) to a folder named “Archive/YEAR/MONTH” in the current account, where YEAR and MONTH are the message's year and month received, respectively. If the folder doesn't exist already it creates it. Extract it and put it in the ~/Library/Scripts/Mail Scripts folder. Written by Jeff Abbott.