POP3 via PHP

I’m trying to build a little productivity dashboard for myself and i’d like a my.yahoo.com style list of my 5 newest email messages (just the from:, subject and time) to be displayed on the page with a link to hop over to squirrel mail and check them out.

are there any classes out there or such that would make this pretty easy?

thanks in advance for any help!