I am writing code to download email from different servers, some of which are beyond my control. I would like to be able to filter out spam at the code level, since I cannot always rely on servers to do this efficiently. What resources in Java are available for this? What is a good approach to minimize the amount of spam I need to skip?
I am currently just using the JavaMail API.
source share