An email filter is a program that has the function of segregating emails into different categories by creating different folders depending on explicit criteria. For example, categorizing emails as separate folders for work, personal, subscriptions and other categories.
An anti-spam filter is a filter that blocks spams from entering a system through unsolicited or unwanted emails. The system may be of software, hardware, or process.