Or you could look into a program like Spambayes to do it.
Probably be easier to use Thunderbird though.