in reply to read mail

A more primitive but workable solution can be found in Net::POP3, it works best on raw (plain text) emails.