Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1508
  • Last Modified:

Read Email Metadata

Is there a way to extract metadata such as Sender and Sent Date from emails (.MSG) that have been added to normal SharePoint libraries (NOT email enabled libraries).

I cannot email enable the library in question, but I'm interested in perhaps writing an Item Event Receiver to populate email metadata into columns whenever an .MSG file is added to the library.

We already use Harmon.ie to do this when a user adds an email to the library, but I want to cover the bases for when a user isn't using Harmon.ie.
0
Jamie McAllister MVP
Asked:
Jamie McAllister MVP
2 Solutions
 
Éric MoreauSenior .Net ConsultantCommented:
the component from Aspose (http://www.aspose.com/.net/email-component.aspx) let you manipulate .msg files. It will let you open the file and take the info you need.
0
 
Rainer JeschorCommented:
Hi Jamie,

unfortunately there is no out-of-the-box MSG file parser available in .NET. So either you build your own, use a third party component (paid), Outlook COM or this open source component
http://www.codeproject.com/Articles/32899/Reading-an-Outlook-MSG-File-in-C
(browse through the source code to the classes OutlookStorage and OutlookDataObject)

Everything else should be straight forward SharePoint development.

HTH
Rainer

P.S.: Looks somehow interesting - perhaps I have some time at the end of November to do some prototyping
0
 
Jamie McAllister MVPArchitectAuthor Commented:
Thanks guys, I figured a commercial solution might be needed, though that codeproject article is very interesting indeed.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now