I'm writing code to download email from various servers, some of which are outside of my control. I'd like to be able to filter out spam at the code level since I can't always rely on the servers to do it effectively. What resources in Java are available to help with this? What is a good approach to take in order to minimize the amount of spam I need to wade through?
Currently I am just using the JavaMail API.