I just wrote this funky little email client thing
doesn't use Java.mail
(open source)
it knd of sucks but possibly can help as a start.
if you make it better let me know or send me a copy
the thing works in a kind of a simple way
I'm sort of a begginner
program @
http://users.abac.com/GaryJones32/JMailClient
However I strongly recommend using the JavaMail API (downloadable from this site) which can handle POP3, IMAP etc. It is quite simple to use and has many examples. The only snag is that anyone else who wants to use it also has to download the JavaMail thing and add it to their JVM.
Squiff