in reply to Retrieving email and decoding attachments
I suggest Mail::POP3Client for retrieving messages.
Ciao, Valerio