Ziron
  • Ziron
  • 52.25% (Neutral)
  • Newbie Topic Starter
3 years ago
Hi,

What is the proper way to detect if an MSG file contains a sent or received email?

I've already tried "IsReport" but in both cases I got a "False" result.

Thank you,
Ziron
ivan
  • ivan
  • 100% (Exalted)
  • Administration
3 years ago
after you parsed the MSG file, check if there is a header named "Received", if the header is existed, it should be a received email.
Ziron
  • Ziron
  • 52.25% (Neutral)
  • Newbie Topic Starter
3 years ago
Thanks, but it looks like "X-Received-By" is the correct header name for Outlook "MSG"!?
And "Received" seems to be the right header name for EML emails.

Is that correct or did I misunderstand?

And a last question ...

How can I detect if a MSG-file is a eMail-file and not something else like a task or appointment MSG-file?
Because unfortaly Outlook saves tasks and appointments also as MSG-files.
ivan
  • ivan
  • 100% (Exalted)
  • Administration
3 years ago
In my experience, you should use Received header.

You can use Mail.MessageClass property,

If it is:

IPM.Appointment

then it is a task or appointment.
Ziron
  • Ziron
  • 52.25% (Neutral)
  • Newbie Topic Starter
3 years ago
Thank you, but I can't find a MessageClass property in your component, only "Headers", "Content" and so on...
Can you give me a little peace of more infos?

BTW: I know the MessageClass from Outlook, but in this case I must open MSG files without Outlook.
ivan
  • ivan
  • 100% (Exalted)
  • Administration
3 years ago
I am sorry, this property is only exported in .NET version, ActiveX version doesn't export this property.

Please contact our support email address to request a version with this property exported.

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.