I am trying to get my Exchange emails using javamail api for android from here: http://code.google.com/p/javamail-android/
I have successfully puled google and yahoo emails through imap protocol but when comes to exchange I got 03-14 12:46:13.698: WARN/System.err(281): javax.mail.MessagingException: Not trusted server certificate;
The problem is that my exchange server has self signed certificate and because of that I have to implement in my connections a TrustAllSSLSocketFactory class. The problem is that I don't know how can I do that with javamail api using imap.
I have found some examples on the internet but all are using smtp ... and I don't know how to do it in imap... can somebody help me please?