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
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.
@meetmahajan,can you add tUnite between tFileInputMail and tLogRow and check?
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.
Join us at the Community Lounge.
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Watch the recorded webinar!
Pick up some tips and tricks with Context Variables
Learn how media organizations have achieved success with Data Integration
Accelerate your data lake projects with an agile approach