Google gives you several options for setting up email filters, but it lacks a few settings to make it seriously powerful. Digital Inspiration shows off how to use a script to power up those filters even more.
Digital Inspiration's script lets you set up filters so messages are marked as spam if there are a lot of recipients, if the subject has too many characters or if a message has a set number of hyperlinks. The script then runs in the background and organises your email just like the official Gmail filters. If Gmail's filters aren't doing it for you, this should help.
Advanced Gmail Filters That Aren't Available in Gmail [Digital Inspiration]