RetrievePOP3 and attachements with same name

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Algis
Newbie
Posts: 2
Joined: Thu Sep 08, 2011 8:05 am

RetrievePOP3 and attachements with same name

Post by Algis » Thu Sep 08, 2011 8:12 am

Hello,

RetrievePOP3 is saving attached files to specified path and this works ok.
But if email contains several attachements which has same name,
RetrievePOP3 will save these and every next attachement will overwrite
previuos.
Maybe there is some workaround using macroscheduler features?
Or maybe next release could save save attachements using
different naming scheme in order to prevent overwrite.

ainterne
Junior Coder
Posts: 29
Joined: Tue Jun 05, 2007 4:03 am

Post by ainterne » Thu Sep 08, 2011 11:27 pm

Just rename the files as they come in, anything like....

Let>????=yourfile

getdate>date
gettime>time
Separate>%date%,/,date
Separate>%time%,:,time

RenameFile>%yourfile%,c:\newfile%date_1%%date_2%%date_3%%time_1%%time_2%.txt
Phil.......

Algis
Newbie
Posts: 2
Joined: Thu Sep 08, 2011 8:05 am

Post by Algis » Fri Sep 09, 2011 10:59 am

It is not possible.
RetrievePOP3 does its job in one call.
So if there just one email with 2 attached files:
1.txt
1.txt
I will get only one MSG1_1.txt as the result.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts