I wrote a tool to extract email boxes to local disk as client asked.
Then I wrote a tool to leaf through the extracted files checking for duplicate attachements and giving them a list. (I had to use the COM api direct rather than the Outlook interop as it is not possible to open .msg files using the outlook objects)
Then the client asked me to filter email messages with a received date older than a given date.
It is extremely fiddly to get the date from a binary mapi file using unmanaged com api calls from c#. Took me two hours to get the code working. Needed to return a byte array and then massage it into a DateTime object.
All ClientCo hears is it took two hours to write some code to read a date from an email message.
Then I wrote a tool to leaf through the extracted files checking for duplicate attachements and giving them a list. (I had to use the COM api direct rather than the Outlook interop as it is not possible to open .msg files using the outlook objects)
Then the client asked me to filter email messages with a received date older than a given date.
It is extremely fiddly to get the date from a binary mapi file using unmanaged com api calls from c#. Took me two hours to get the code working. Needed to return a byte array and then massage it into a DateTime object.
All ClientCo hears is it took two hours to write some code to read a date from an email message.
Comment