Export Unread E-mail to Text?

We're currently working on having an iMac running Debian display our unread e-mails on its screensaver. We have the problem currently that Gmail's Atom feed only gives the subject and a one-line summary of the unread emails in the inbox. We're looking to fetch the full text of the unread email, and dump it to a text file for the xscreensaver Phosphor to display. Can anyone out there help with this? Shoot us an email to imac@grav-corp.com :D