Utilities for email filtering