Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Delete mail from server

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?
Labels (2)
13 Replies
Anonymous
Not applicable
Author

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.
Anonymous
Not applicable
Author

Hi
can u put some screenshots of your job
Anonymous
Not applicable
Author

Sure...
This is the main job...and the loop after tfileinputmail is a job that deletes the mail from server
Anonymous
Not applicable
Author

Is there a way to move an email from inbox to another folder using TalenD?
Anonymous
Not applicable
Author

Hi
What is purpose of tRunJob in your job? Why don't your check the option 'Delete emails from server' on tPOP while retrieving the emails from server.
Is there a way to move an email from inbox to another folder using TalenD?

No, there is no component can do it yet.
Best regards
Shong
Anonymous
Not applicable
Author

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...
Anonymous
Not applicable
Author

Hi
It delets the mail from my server before even downloading it.

ah, really? Which version are you using? It should download the mail before deleting it. I will test it and see what is wrong.
Best regards
Shong
Anonymous
Not applicable
Author

I am using Talend open studio V4.2.2
Anonymous
Not applicable
Author

the error message is attached with the first post in this thread...