Jump to content

Uba

Members
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Uba's Achievements

Newbie

Newbie (1/14)

  1. okay so i have figured something out, the only problem is that you need outlook installed and configured with a profile. still working on a standalone solution. public static IEnumerable<MailItem> readPst(string pstFilePath, string pstName) { List<MailItem> mailItems = new List<MailItem>(); Microsoft.Office.Interop.Outlook.Application app = new Microsoft.Office.Interop.Outlook.Application(); NameSpace outlookNs = app.GetNamespace("MAPI"); // Add PST file (Outlook Data File) to Default Profile outlookNs.AddStore(pstFilePath); Microsoft.Office.Interop.Outlook.MAPIFolder rootFolder = outlookNs.Stores[pstName].GetRootFolder(); // Traverse through all folders in the PST file // TODO: This is not recursive, refactor Folders subFolders = rootFolder.Folders; foreach (Folder folder in subFolders) { Items items = folder.Items; foreach (object item in items) { if (item is MailItem) { MailItem mailItem = item as MailItem; mailItems.Add(mailItem); } } } // Remove PST file from Default Profile outlookNs.RemoveStore(rootFolder); return mailItems; } This code will retrieve all mailitems inside the pst file.
  2. working on an Email archiving project at work. Goal: Compleate visible backup of all emails and attachments, and sql database with searchable information.

  3. to keep information flowing in this thread i may have found what i was looking for http://www.dimastr.com/redemption/ I will update how the trial run goes.
  4. I think the best way to go about this is to use httpwebrequest & Response to get the entire code of a webpage, after that use regex or algorithims to parse the tags of the code you've retrived, on that note you may be able to place the code in an new htmlDocument and retrive the tags that way too, as for the database it really isnt that hard although i would suggest sql or mysql(access might work too), it is easyier to manage. then export into excell or csv and manipulate to your liking.
  5. Much agreed, if anyone out there has any information on parseing pst files for the use of extracting emails and attachements please post!.
×
×
  • Create New...