As a part of GDPR requirement.We need attachment not to be attached on the incoming email
As a part of GDPR requirement.
We need attachment(pdf,txt etc) not to be attached on the incoming email request.It should be only attached to the case created as an extra attachment.
example: I send a mail with 2 attachment(pdf,txt).then email gets attached as Original.eml and 2 attachments in a case.Here when I open Original.eml ,It should not contain the attachments attached inside it.
As you said: you attached the Original.eml to the case - ok, in fact you let the EmailListener attach that original email to the WorkObject (at least this is what I assume).
If you do not want the attachments from that original email attached with it to the WorkObject, you need to manipulate the incoming email before attaching it. Or you manipulate the attached email in an intermediate activity before moving the WorkObject to the next process step.
The JavaMail library that is part of Pega allows you to parse the eml that is stored to the Clipboard, and to manipulate the resulting message. Afterwards you can write back the new message's eml to the Clipboard.
Have you tried to enable the "No Attachment" option in the EmailListener Configuration?
The following has been documented in Online Help:
No attachments - If enabled, the listener does not process email attachments and does not put them on the pyAttachmentPage
Embed data for inline images into HTML - if enabled, allows inbound email containing inline images to be rendered correctly when the email is processed as HTML. Enabling this option both base64-encodes the image as embedded HTML content, and does not attach inline images to the generated HTML message.
Save original email (in EML format) - Specify whether the listener saves the original email, complete with any attachments or embedded images, as an attachment. Use this option when email messages contain embedded images and it is important that users can see them in their original context. In such a case, select the No attachments option so the attachments are not saved twice — both individually and as part of the original email attachments.