I am seeing a quite strange issue here using gmail4j 0.4.
I managed to get java code for ImapGmailClient to work without any proxy server. But when I use the same code behind a proxy server after adding
*((ProxyAware) connection).setProxy(proxy_host, proxy_port);*
I just cannot get connection to imap server.
On the other hand, using RssGmailClient, I can get it to work after adding connection.setProxy(proxy_host, proxy_port);
Here, the proxy_host and proxy_port in both places are the same. Could anybody suggest how to solve this issue? Thanks a lot.
Yes, it is HTTP proxy. Why is the case for IMAP not working with HTTP proxy? In the [documentation of gmail4j|http://www.varaneckas.com/gmail4j/0.3/apidocs/com/googlecode/gmail4j/javamail/ImapGmailConnection.html] , it clearly says:
ImapGmailConnection is ProxyAware, allowing to use JavaMail IMAP via HTTP proxy, which was not possible by JavaMail design.
Thanks a lot.
Edited by: user3789189 on May 18, 2011 1:35 PM