Quantcast
Channel: Aspose.Email Product Family
Viewing all articles
Browse latest Browse all 1367

"msg" File extension missing from "msg" attachments.

$
0
0
Aspose.Email
Runtime Version v2.0.50727
Version 4.9.0.0
C#
Visual Studio 2013

var msg = Aspose.Email.Mail.Mailmessage.Load(stream);
var msgAttachment = msg.Attachments.ToList()[0];

In this scenario, the msgAttachment.Name should be equal to "myfile.msg" but instead comes up as just "myfile".

However, if myfile is any other file type (PDF for example), then the extension always shows up as part of the Name property.

This seems to be happening any time I look at the Name property of an attachment of an "msg" (outlook) file that is also an "msg" file.

Am I doing something wrong here?

Thanks

Viewing all articles
Browse latest Browse all 1367