Skip to Content
0
Former Member
Jan 06, 2012 at 02:58 PM

Matching email Subject with attachment content

38 Views

Hello All,

Here is my requirement. I receive and email from a third party. The emai Subject field has the name of the file that is the attachment. I need to pick up the email with PI and put the attachment to disk as a file where the name of the file is the "Subject" field of the email.

I have been able to write the attachment to disk as a file using the PayloadSwapBean. But how do I collect the name of the file from the "Subject" field so I can use it as the name of the file when I write?

Thank you for your assistance.

Rich