testmail is a Perl script that checks email availability at the POP3 server (including SSL), filters it according to the defined rules, and (depending on the selected method) gets the messages to the local mailbox and/or removes them from the server. It uses Perl Mail-POP3Client to establish POP3 connections, IO-Socket-SSL and Net-SSLeay modules for SSL connections, as well as MIME-tools module for decoding MIME encoded email fields.