Pega is treating the email subject as multipart based on length
SummaryPega is treating the email subject as multipart based on length
When a case is created by an email listener rule,by sending a response email back.When the subject of the email has more than 65 characters ,the subject gets split and half of the subject appears in the email body,with the content given below.
Content-Type: text/plain; charset=us-ascii
Error MessagesNot Applicable
Steps to Reproduce
- Send an email to the mailbox ,with along subject line
- Observe: email listener creates a case.
- Response email is send back
Root CauseBy reading the raw header, it may be folded containing newline characters.Since this was implemented without using unfold the subject now the issue occurred.For more information regarding header folding/unfolding, check RFC-2822.
ResolutionUnfold the subject, this is automatically done by using aMsg.getSubject().
Provided HFix-32520 and it was confirmed the issue is resolved.
Published March 15, 2017 - Updated March 18, 2017