Support Article
Email Listener unable to pick Delivery Status Notification Email
SA-7536
Summary
PRPC 6.3 SP1 unable to read DSN email when the DSN messages check box available in the Process Tab of a Email Listener rule is checked. It gets added to the error count when such a request arrives in the system. There is no difference between checking and unchecking this check box.
Error Messages
Request is going to Error state when listener is trying to pick a DSN email.
Steps to Reproduce
- Configure an Email Listener to include DSN emails.
- Listen to the inbox containing DSN email.
- Verify whether system is able to read the message and create an interaction.
Root Cause
After enabling debug level logging for emaillistener class, the below exception was observed.
MAIL.CSSGListener.Listener|from(your_email@your_domain) - Messages are not processed.
javax.mail.MessagingException: Unable to load BODYSTRUCTURE
at com.sun.mail.imap.IMAPMessage.loadBODYSTRUCTURE(IMAPMessage.java:1280)
at com.sun.mail.imap.IMAPMessage.getContentType(IMAPMessage.java:443)
at javax.mail.internet.MimeBodyPart.isMimeType(MimeBodyPart.java:1059)
at javax.mail.internet.MimeMessage.isMimeType(MimeMessage.java:965)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.handleRequest(EmailListener.java:1919)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.emailProcess(EmailListener.java:1712)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.oneIteration(EmailListener.java:1181)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.run_(EmailListener.java:1137)
This can be worked around by creating a new copy of message for this call.
Resolution
HFix-21272 contains the changes suggested in above Oracle article.
Published January 31, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.