Support Article

Pega is treating the email subject as multipart based on length

SA-35082

Summary



Pega 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.

MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_60_-1845236293.1483998371970"

------=_Part_60_-1845236293.1483998371970
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit



Error Messages



Not Applicable


Steps to Reproduce

  1. Send an email to the mailbox ,with along subject line
  2. Observe: email listener creates a case.
  3. Response email is send back


Root Cause



By 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.
https://www.ietf.org/rfc/rfc2822.txt

Resolution



Unfold 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

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.