Spam filters have algorithms by the service providers who detect the email and categorize them. Every service provider has different spam filters that review the content and determine it. Moreover, it also has header filters, which check the email header for checking the falsified information. The general block list filter blocks emails from known spammers, and rule-based filters detect the spam mails.