Daimler Financial Services Africa Asia Pacific Ltd
Posted: 1 year ago
Last activity: 1 year 2 months ago
Email listener not starting when accessing sub folders in Inbox
I am trying to access emails in sub folders of Inbox, example : INBOX/TEST
When i do the changes to the listener and try to start it through SMA, I get the below error. We are not getting this error if the email listener is configured to read directly from INBOX. Issue exists only when trying to access folders and subfolders other than INBOX.
Any idea what is causing this issue?
Start Listener Status
Listener 'Data-Admin-Connect-EmailListener:JPNCustomerServiceCA.Listener(com.pega.pegarules.integration.engine.internal.services.email.EmailListener)/0' failed to start because of the following error:
Failed to launch listener, com.pega.pegarules.pub.PRException: Email listener 'Listener.JPNCustomerServiceCA' failed to connect to Email Server - From: (B9337655B9E2A7ABE0D8E5D683F1D9F2B:(MBean Access))
***Edited by Moderator: Pallavi to update platform capability tags***
com.ibm.ws.http.HttpConnection.run(HttpConnection.java:522)<CR><CR> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1892)<CR><CR>Caused by: javax.mail.FolderNotFoundException: folder is not INBOX<CR><CR> at com.sun.mail.pop3.POP3Folder.open(POP3Folder.java:203)<CR><CR> at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.openMailFolder(EmailListener.java:3530)<CR><CR> at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.setup(EmailListener.java:2134)<CR><CR> ... 61 more<CR><CR>]*
Could you please share the Email Listener screen shot.
I have analysed the root cause and found that javax.mail.FolderNotFoundException: folder is not INBOX is caused when POP3 protocol is used.
The issue here is that the JavaMail API used within the POP3 connector doesn't support the use of mailboxFolder or moveToFolder. The mailbox folder name is hard coded to look at the default inbox on any email account for both reading and writing emails.
Thanks for your help, let me know if you have more information on this.