Our anti-spam system in the Classic Linux environment is now quite effectively using self-learning to recognize spam. Also called Bayesian filtering. You can help it learn even more effectively. Please see:
Teaching the system to recognize spam or not-spam.
https://info.rahul.net/hints/teaching_system_recognize_spam_not