Email check task overwriting attachments

Discuss email problems

Email check task overwriting attachments

Postby melvin » Wed Aug 06, 2014 10:12 pm

User support request:

when the attachment file name is the same in two different emails than the first ist overritten by the second, the second by the third and so on. The downloaded email bodies are separated by i.e. Email_download_xyz_0_ , Email_download_xyz_1_ and so on. It is possible to do so also with the attachments?
melvin
Site Admin
 
Posts: 979
Joined: Thu May 25, 2006 10:20 am
Location: Santa Barbara, california

Re: Email check task overwriting attachments

Postby melvin » Wed Aug 06, 2014 10:12 pm

You can append the Date/Time to the attachment using the Append To Filename field. This way nothing is overwritten.
melvin
Site Admin
 
Posts: 979
Joined: Thu May 25, 2006 10:20 am
Location: Santa Barbara, california

Re: Email check task overwriting attachments

Postby melvin » Wed Aug 06, 2014 10:13 pm

Maybe you understand wrong or my explanation wasn't clear. I try again:
I get two emails with attachment from the same sender and with the same subject. The attachment file names are the same in these two emails, in my case 41124520.txt.
The time range condition is fullfilled in the email check task and I marked append date/time. I let the task run and the two email bodies were donwloaded in two different files but only one attachment instead of two (see attached) because the task didn't create the attachments as the email bodies like 41124520_1.txt and 41124520_2.txt

I hope you could follow my explanation, now.
melvin
Site Admin
 
Posts: 979
Joined: Thu May 25, 2006 10:20 am
Location: Santa Barbara, california

Re: Email check task overwriting attachments

Postby melvin » Wed Aug 06, 2014 10:15 pm

It did add a default date time ... which is 4112452008060830.txt i.e. it added 08060830 (MMddhhmm)..
But both attachments were downloaded in the same minute , i.e. at 8:30. So first one got overwritten.
If you add in the seconds, it will not overwrite.

To add in the seconds, there are 2 options:

Option 1:
Settings menu
Filename format
Select option for “include seconds”

Option 2:
If you do not want to globally include seconds in this field, then specify a variable instead in the append to filename field:
P2::$%DATE::ppddhhmmss%$
melvin
Site Admin
 
Posts: 979
Joined: Thu May 25, 2006 10:20 am
Location: Santa Barbara, california

Re: Email check task overwriting attachments

Postby melvin » Thu Aug 07, 2014 6:03 am

user reply:

Thanks for your quick answer and solution.
But the way with the variable isn't working 100% safety. Sometimes two attachments are downloaded sometimes only one because the download happened in the same second. :-)

Why isn't Automize working in the same way by downloading attachments as Automize is working with email bodies, now??? Than the problem is solved.
melvin
Site Admin
 
Posts: 979
Joined: Thu May 25, 2006 10:20 am
Location: Santa Barbara, california

Re: Email check task overwriting attachments

Postby melvin » Thu Aug 07, 2014 6:03 am

In this case, use the DATES variable (available since 10.08) .. it also has millisecond so that should resolve the issue.
P2::$%DATES::MMddHHmmss-SSS%$

We will not switch the existing format of attachments because users already have logic setup based on this format and it will break their setup. We would have to provide an option for this. Since DATES should work in all cases we will likely not do that.
melvin
Site Admin
 
Posts: 979
Joined: Thu May 25, 2006 10:20 am
Location: Santa Barbara, california

Re: Email check task overwriting attachments

Postby melvin » Thu Aug 07, 2014 6:04 am

user response:

Thanks and the task is working 100%, now.
Thank you very much for your help.
melvin
Site Admin
 
Posts: 979
Joined: Thu May 25, 2006 10:20 am
Location: Santa Barbara, california


Return to Email

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron