Outlook can be really weird sometimes.
Our company leaves downloaded emails on the ISP server for 5 days.
Two different computers download the emails, so the East Coast and the West Coast computers should both get the same emails.
I recently noticed occurances where the the names are different, like 'ATT00283.txt' and the East Coast and 'ATT00100.txt' on the West Coast. So far, the affected attachments have always been a confidentiality notice, but I don't think this will always be the case.
The ***** seems to be some sort of random number that outlook generates during download.
This causes a problem because I have a vba program that loops through the attachment names and generates a unique hash code. The hash code is supposed to be the same on both computers, but the random number keeps that from happening.
As a workaround, I could delete the 5 digit attachment number when calculating the hash code, so both attachments would be identical like "ATT.txt". But, that is not a totally reliable solution for reasons that ar too subtle to explain.
I would prefer to replace the 5 digits with something uniquely related to content of the attachment. In other words, if Two messages have . For instance, I could save the .txt file to c:\...temp\then grab the first word from the text file. But, that seems like a lot of overhead.
So, then I thought that the MAPIOBJECT might contain the size of the attachment. But, the MAPIOBJECT hides all of its properties, so I'm stuck.