I am trying to get original subject in pyOriginalSubject from the attachment of the DSN emails. I selected "Process delivery status notifications (DSNs)" option in email listener. Configured Thread-Topic in Message Header and in DSN data, I have mapped original-subject to .pyInboundEmail.pyOriginalSubject. I get pyOriginalSubject as "Delivery Status Notification (Failure)" instead of actual subject of original email.
Please let me know if any other configuration is required.
***Updated by moderator: Lochan to add Categories***
I tried to get the attachment name in DSN emails by using pyattachmentpage. Here I can see 2 value list in pyattachvalues. For ATT00001 attachment pyattachvalue(1) is junk value and for original email attachment pyattachvalue(2) is original-email.eml.
Below is my requirement:
For undelivered emails due to incorrect email ids, I am receiving DSN emails with 2 attachments in it (ATT00001 and original email sent). While processing through email listener I am trying to get the original email subject from the attachment in DSN email. How can I acheive this.