Is EntryID unique for every message?

A

Aline

Hello!

I programmed a loop to save attachments to a folder.
The problem is that they are having the same name so I
need to save them to differents names.

I'm wondering if EntryId would be specific to every
message then I could use the last 10 characters.

Please advice.

Thanks.
 
K

Ken Slovak - [MVP - Outlook]

Yes, EntryID is a GUID and is unique but that doesn't mean that the last 10
characters would necessarily be unique. Only the entire GUID is guaranteed
to be unique. Why not just test if a file of that name exists in that folder
before you try to save it. If it does append a number and test again until
you don't find a file of that name.
 
A

Aline

Thanks for your reply.
Now I try to figure it out what is the structure of the
EntryID, because it seems to me that it's starts with the
provider specifics.

I observed that for 20 messages reveived the same day, the
last 10 characters were distinguosly.
Maybe for a pile of 500 messages the 10 last characters
would be the same.
And I'm expecting to receive such a quantity.

Thanks again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top