I am trying to use JavaMail talk to gmail/imap, but could not make it work. I am behind firewall and have the right setting for proxy.
JavaMail does not currently support accessing mail servers through a web proxy server.