I have a program that uses EWS to pull emails from an exchange server, gets the attachments off of them and converts them to PDFs. Before I convert them, I check all of the extensions of the attachments to make sure they are something I can handle.
My problem is when an email (msg) is the attachment in an email. In outlook/exchange, these do not show the extension, so any way I try to pull the extension, I get nothing or something incorrect like .itemattachment.