Four Stars

tFileInputMail does not extract Attachment

Hi.

Version.

Talend     Tos branding feature    6.3.1.20161216_1026    org.talend.rcp.branding.tos.feature.feature.group  

java.runtime.version=1.8.0_131-b11

 

I can´t get to work the tFileInputMail when the email comes from a mobile apple client.

The job was working without issues for almost a year.

To isolate the problem I have designed a small job to read the email file (MIME) message and investigate when it fails.

Two emails messages are attached to this issue. One with BASE64 encoding format for the attachment (a csv file) and the other with 7bit encoding for the attachment(20180624-210832_1NotOk.mail).

The thing is that the java code for the component that extract the multipart content is not getting the content. It appears to not have an attachement inside.

To make the things easier I´m working with one single mail file in the job. I have just changed the file name.

The same job works with another .mail file that comes with base64 encodig attachment. (20180624-210832_2Ok.mail)

 

 Captura de pantalla 2018-06-25 a la(s) 12.55.19.png

attachments directory empty. With 20180624-210832_1NotOk.mail

Captura de pantalla 2018-06-25 a la(s) 12.56.54.png

The job can extract attachement from 20180624-210832_2Ok.mail

 

Thank you in advance for any light on this.

Daniel.

5 REPLIES
Moderator

Re: tFileInputMail does not extract Attachment

Hello,

Are you able to get the data content in NotePad++ for your email comes from a mobile apple client?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Four Stars

Re: tFileInputMail does not extract Attachment

of course.

I can download and extract from any other email client the attached files.

Four Stars

Re: tFileInputMail does not extract Attachment

Here it is in text format:

--Apple-Mail-F694C06C-C33D-449D-B996-030729B571B3
Content-Type: text/csv;
	name=asistencia-factor-hombre.csv;
	x-apple-part-url=F63BDD68-AEBC-46B4-ADA3-A6289958D6C2
Content-Disposition: attachment;
	filename=asistencia-factor-hombre.csv
Content-Transfer-Encoding: 7bit

Barcode,Item,Name,Quantity,Description,Type,Date
"ID60$VICENTE DURAN LINAN","1","","1","","QR_CODE","2018-05-19T09:39:43-05:00"
--Apple-Mail-F694C06C-C33D-449D-B996-030729B571B3

 

Moderator

Re: tFileInputMail does not extract Attachment

Hello,

Here exists a jira issue:https://jira.talendforge.org/browse/TDI-39982.

Could you please have a look at it?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Four Stars

Re: tFileInputMail does not extract Attachment

Hi. Sabrina

I do not have two email attachment with the same name within the email MIME format.

Did you see the attached files that I have sent?

Thank you.