I am getting the attachments from an outlook mail. There are some traps aroudn this from c#, but most of them are solved by some ugly hacks. But there is one that I am not able to solve.
If I add an attachment as a file, the whole filename is saved including the file extenssion. So when I save the file to disc later it's saved correctly so I can only dblclick the file and it's opened in the correct application.
But if the attachement is added using the "Attach Item" -> "Add outlook Item", the mail/calender/contact is added without the file extenssion. So If I add a mail to my mail with this function then the .msg fileextension is not part of the filename and when trying to save it to disc it is recognized as an outlook mail.
But if I check in outlook I can see that the correct icon is added for this attachment, so outlook is able to know if it's a mail / contact / calenderitem so the information should be there somewhere.
Does anybody knows how to find out that it's a .msg that is in the attachment?