Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Ziron  
#1 Posted : Tuesday, February 15, 2022 3:29:17 AM(UTC)
Ziron

Rank: Newbie

Groups: Registered
Joined: 2/15/2022(UTC)
Posts: 3
Germany

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  
#2 Posted : Thursday, February 17, 2022 6:21:15 PM(UTC)
ivan

Rank: Administration

Groups: Administrators
Joined: 11/11/2010(UTC)
Posts: 1,154

Thanks: 9 times
Was thanked: 55 time(s) in 55 post(s)
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  
#3 Posted : Saturday, February 19, 2022 7:45:56 AM(UTC)
Ziron

Rank: Newbie

Groups: Registered
Joined: 2/15/2022(UTC)
Posts: 3
Germany

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.

Edited by user Saturday, February 19, 2022 8:02:16 AM(UTC)  | Reason: Not specified

ivan  
#4 Posted : Monday, February 21, 2022 6:19:31 PM(UTC)
ivan

Rank: Administration

Groups: Administrators
Joined: 11/11/2010(UTC)
Posts: 1,154

Thanks: 9 times
Was thanked: 55 time(s) in 55 post(s)
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  
#5 Posted : Thursday, February 24, 2022 1:40:52 AM(UTC)
Ziron

Rank: Newbie

Groups: Registered
Joined: 2/15/2022(UTC)
Posts: 3
Germany

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  
#6 Posted : Monday, February 28, 2022 4:01:40 PM(UTC)
ivan

Rank: Administration

Groups: Administrators
Joined: 11/11/2010(UTC)
Posts: 1,154

Thanks: 9 times
Was thanked: 55 time(s) in 55 post(s)
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.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.068 seconds.

EXPLORE TUTORIALS

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