php/perl to create a standard pop3