This question refers to the code posted in my previous question.
That routine outputs property data for the e-mails in an Outlook folder. It gets the data either directly from the MailItem
object (sLoopThru
= "folder") or from a table object built from the folder (sLoopThru
= "table"). In the output of that routine, I get the following differences depending on which method is used:
- For most of the e-mails in the tested folder, the size reported by
oTableRow("Size")
is 16 bytes less than that reported byoEmailItem.Size
. - When a time value accessed from the table is null, such as a few of
oTableRow("SentOn")
and all ofoTableRow("ReminderTime")
, the value reported by the property directly, such asoEmailItem.SentOn
andoEmailItem.ReminderTime
, is 949998, which Excel automatically formats as the strange date, 4501 01 01.
The size issue is the most concerning because it's a discrepancy in the size reported for some but not all e-mails. The timestamp issue is just weird.
What is the cause of the size discrepancy and since when is the first day of the year 4501 equivalent to a null date?