when I select the option for deleting the mail from server using tpop component while downloading the mail, it downlaods a partial mail file but it deletes the mail from the server and the component stops throwing an error. I am using IMAP protocol and i am accessing gmail server. I am attaching the error message along with this. Can anyone tell me whats happening with this?
My job is to download mail files from a server and save the attachments in the mail file to my local server. I am using the tpop component to do this and am giving the fileneme pattern as ( "downloaded_mail_" + (counter_tPOP_1 + 1) + ".mail") . This will save the files as downloaded_mail_1,downloaded_mail_2,.... I thought doing this will be helpful in downloading attachments from the files using tfileinputmail component. The job extracts only one mail from the server at a time, downloads the attachments and deletes the email file from my local machine once the attachment gets saved. This job performed fine. I put this job in a loop and I selected the option for deleting the mail from server in tpop component so that the job running in the loop will not be downloading the same email every time. This is where I get the error. The mail is getting deleted from the server but an incomplete mail file gets saved in my local machine and the job stops there throwing some error. So I thought of using two tpop components. One in the main job which downloads the mail and another inside a loop which will delete the mail from server alone. Even this process gave the same error and stopped the job. There is some problem in deleting mails from server.
Hi, I tried using the delete mail from server option in tpop component. It delets the mail from my server before even downloading it. For example my file is 150 KB and it downloads fine when i dont use the delete mail option. But when i select the delete mail from server option a .mail file of 2 or 3 KB gets downloaded, my mail gets deleted from server and the jobs stops throwing some java exception. So i thought of creating a job that downloads alone without deleting option and the other is the TRunjob in which I am using a tpop component here with delet mail option. So this should be deleting the mail which was downloaded earlier. It deletes the mail but the job but stops because of the error. I even tried giving condition as onsubject error...but still its the same...
I extracted a job I had in the Talend Open Studio and imported the same to the Talend Data Quality. The job which performed fine in the TOS is throwing some error in the TDQ. I have attached the screen shot along with this comment. Can anyone please have a look at it and let me what could have caused this issue. Regards, Bharathan
Shong any update on this error? Works perfect if I uncheck delete. I too am getting the following error with IMAP using gmail. File does get "deleted" (meaning label is removed from mail) but get the following error. Screenshot of settings included (user pass removed)
Exception in component tPOP_1 java.io.IOException: No content at com.sun.mail.imap.IMAPInputStream.fill(IMAPInputStream.java:111) at com.sun.mail.imap.IMAPInputStream.read(IMAPInputStream.java:158) at beta_test_sf_load_account.proofemailprocess_0_1.ProofEmailProcess.tPOP_1Process(ProofEmailProcess.java:1258) at beta_test_sf_load_account.proofemailprocess_0_1.ProofEmailProcess.runJobInTOS(ProofEmailProcess.java:3874) at beta_test_sf_load_account.proofemailprocess_0_1.ProofEmailProcess.main(ProofEmailProcess.java:3738)