Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to fetch attachment from multiple emails whose subject is same, using tPOP-->tFileList-->tFileInputMail

I have created a model which fetches the mail from GMAIL of particular Pattern, it fetches multiple emails and each mail contains an attachment.

But here is the twist it only downloads the last read mail attachment, not the previous one.

The screenshot has been shared below for better understanding 

0683p000009Ly2M.png

 

Here, all the mail contains an attachment, 5 ( * .mail) file has been downloaded but, attachment of 15th June is downloaded, what should I do to download all 5 attachments.

Labels (2)
4 Replies
manodwhb
Champion II

@meetmahajan,can you add  tUnite between tFileInputMail and tLogRow and check?

Anonymous
Not applicable
Author

It's not working @manodwhb

David_Beaty
Specialist

Hi,

 

I think you'll need to iterate the tFileInputMail component, the do a tFilsitList of the attachment directory and move them out of the way, before moving on to mail 2. That way you can keep track of each attachment from each email, parsing and using the email message "MessageId" is probably a good one to use.

Anonymous
Not applicable
Author

Remove the file list component, it will work for sure.