gavamail is a POP3/IMAP server proxy for Gmail. It
sets up a proxy server on your localhost that
talks with the Gmail service using the g4j java
library. It opens up a port on your local machine
which you can then connect to from your favorite
email client.