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

Seven Stars

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 

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

Forteen Stars

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

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

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.
Seven Stars

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

It's not working @manodwhb

Nine Stars

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

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.

Regards David
Dont forget to give Kudos when an answer is helpful or mark the answer as the solution.

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch