Modules in the Mail::* hierarchy are known for being featureful and heavyweight.
Email::Filter is part of the Email::* family of lighter, simpler modules launched by Simon Cozens and others. I use it for filtering mail I download with
Net::IMAP::Client