Added a function that pulls emails filtered by any of its attributes