Is EntryID unique for every message?

  • Thread starter Thread starter Aline
  • Start date Start date
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.
 
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.
 
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.
 
Back
Top