Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tFileInputMail - detach from HTML mail

Hi,
I have a problem with detaching attachments from HTML mails using tFileInputMail - is it even possible/supported?
From the mail file, I see attachment like this:
Content-Type: application/octet-stream;
name="xyz.csv"
Content-Transfer-Encoding: base64

Thanks for your support!
Greg
Labels (2)
16 Replies
Anonymous
Not applicable
Author

Hi,
Have you checked online component reference TalendHelpCenter:tFileInputMail, which reads the header and content parts of defined email file(The file should be saved in local).
What's your job design? tpop-->tFileInputMail? Could you please show us your work flow screenshots?

Best regards
Sabrina
Anonymous
Not applicable
Author

I have no problems detaching from plaintext mail. But from HTML mail, I have problems.
For testing purposes, I have a local mail file test.mail (I got it from tPop), which I just process via tFileinputMail --> tLogRow. I successfully parse some mail fields (From, Subject, Status etc.), however I don't get attachments detached.
Greg
Anonymous
Not applicable
Author

Hi,
What is the schema that you defined for your tFileInputMail?
Basic Settings of tFileInputMail:
Collumn Mail part
SUBJECT SUBJECT
ATTACHMENT ATTACHMENT
Could you please show your component setting screenshot to us?
Best regards
Sabrina
Anonymous
Not applicable
Author


One thing I've figured.
The content I get from tPOP is:
Content-Type: application/octet-stream;
name="xyz.csv"
Content-Transfer-Encoding: base64

If I change that to:
Content-Disposition: attachment;
filename="xyz.csv"
Content-Transfer-Encoding: base64

... it works! Seems like that I don't get "Content-Disposition: attachment" part from tPOP if the mail is in HTML.
Can you reproduce this? Perhaps I can send you test.mail file?
Regards,
Greg
Anonymous
Not applicable
Author

Hi,
Could you please indicate the build version you're using? Sending the test.mail file to me will be preferred so that we can take a testing for this scenario.
Best regards
Sabrina
Anonymous
Not applicable
Author

I'm on:
"Talend Open Studio for Data Integration"
Version: 5.4.1
Build id: r111943-20131212-1133
I've sent you a link to test.mail and exportet job.
Thanks for your time.
Greg
Anonymous
Not applicable
Author

Hi, just wondering ... did you get my test case?
Thanks!
Anonymous
Not applicable
Author

Hi vevavar,
Sorry for delay.
Thanks for your email, however, I cannot get them from drive.google.com. Would you mind sending them to me by attachment?
Best regards
Sabrina
Anonymous
Not applicable
Author

How can I send the attachments to you? I don't have your email. Sorry, I'm new to this forum 0683p000009MACn.png