Rank: Newbie
Groups: Registered
Joined: 2/15/2022(UTC)
Posts: 3
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
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.
Rank: Newbie
Groups: Registered
Joined: 2/15/2022(UTC)
Posts: 3
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
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.
Rank: Newbie
Groups: Registered
Joined: 2/15/2022(UTC)
Posts: 3
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.
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.
Forum Jump
EmailArchitect Support
Email Component Development
- EASendMail SMTP Component - .NET Version
- EASendMail SMTP Component - Windows Store Apps
- EASendMail SMTP ActiveX Object
- EAGetMail POP3 & IMAP4 Component - .NET Version
- EAGetMail POP3 & IMAP4 ActiveX Object
Exchange Server and IIS SMTP Plugin
- DomanKeys/DKIM for Exchange Server and IIS SMTP
- Disclaimer and S/MIME for Exchange Server and IIS
EmailArchitect Email Server
- EmailArchitect Email Server (General)
- EmailArchitect Email Server Development
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.