We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Detect Out-of-Office mails

Hi,

is there a property or method in MailMessage or MapiMessage to detect if a mail is an Out-Of-Office Auto-Reply mail?

kind regards

Markus

Hi Markus,

Thank you for writing to Aspose Support team.

As per the Message Classes specified by Microsoft, you can detect such message by its message class i.e. IPM.Note.Rules.Oof.Template.Microsoft. You can detect the message type using MapiMessage.MessageClass field.

Sample Code:

MapiMessage mapiMsg = MapiMessage.FromFile(“Not In Office.msg”);

Console.WriteLine(mapiMsg.MessageClass);