Hi,
I am using
Java Mail API to connect to various POP3 servers. It works for most of the POP3 servers, but in case of one particular POP3 server - ksc.th.com, it connects to the POP3 server, but while opening the INBOX folder it gives following exception
javax.mail.MessagingException: Open failed;
nested exception is:
java.io.IOException: Unexpected response:
at com.sun.mail.pop3.POP3Folder.open(POP3Folder.java:170)
at orange.net4nuts.transceiver.services.PopConnector.connect(PopConnector.java:30)
at orange.net4nuts.mbeans.popmbean.PopMailMBean.onMessage(PopMailMBean.java:2079)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke
I tried opening the folder once in READ_WRITE mode and second time in READ_ONLY mode, both giving the same error.
Now, if I manually do telnet to ksc.th.com on port 110, from there I can read the emails without any problems.
Can somebody help me on this??
Ankit Doshi