This software will delete messages from a given folder if the test returns true. WWW: https://metacpan.org/release/Email-Delete