AnsweredAssumed Answered

Virtualize Mailbox from outlook.com or office365

Question asked by Sankar Natarajan Employee on Jul 5, 2018
Latest reply on Jul 5, 2018 by Joel NeSmith

Hello All

         I need to virtualize my email inbox from outlook.com. We have a feature in our product that opens a designated mailbox and read mails to create tickets in the ticketing system.

 

As I understand, there is no direct protocol support (and I could be wrong) for IMAP protocol. I tried to achieve the desired result using ODP. I could do a basic use case recording of opening the mailbox, get the count of emails and read the mails. I deployed the virtual service and have my program point to virtual service instead of outlook.com.

 

 I am facing the following error when my program tries to connect to virtual service, open the mailbox and read the emails. Any ideas/suggestions/hints will help.

 

javax.mail.MessagingException: Error parsing extensions: extra data;
nested exception is:
javax.net.ssl.SSLProtocolException: Error parsing extensions: extra data
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:735)
at javax.mail.Service.connect(Service.java:366)
at javax.mail.Service.connect(Service.java:246)
at javax.mail.Service.connect(Service.java:195)
at com.ca.experiments.MailReader.login(MailReader.java:54)
at com.ca.experiments.MailReaderService.main(MailReaderService.java:49)
Caused by: javax.net.ssl.SSLProtocolException: Error parsing extensions: extra data
at java.base/sun.security.ssl.HelloExtensions.<init>(HelloExtensions.java:105)
at java.base/sun.security.ssl.HandshakeMessage$ServerHello.<init>(HandshakeMessage.java:536)
at java.base/sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:246)
at java.base/sun.security.ssl.Handshaker.processLoop(Handshaker.java:1098)
at java.base/sun.security.ssl.Handshaker.processRecord(Handshaker.java:1026)
at java.base/sun.security.ssl.SSLSocketImpl.processInputRecord(SSLSocketImpl.java:1137)
at java.base/sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1074)
at java.base/sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)
at java.base/sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1402)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1429)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)
at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:598)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:372)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:238)
at com.sun.mail.iap.Protocol.<init>(Protocol.java:123)
at com.sun.mail.imap.protocol.IMAPProtocol.<init>(IMAPProtocol.java:126)
at com.sun.mail.imap.IMAPStore.newIMAPProtocol(IMAPStore.java:756)
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:691)
... 5 more

Outcomes