Saving / Organizing / Searching Outlook Email Outside Outlook

My company requires me to use Outlook for my email. Outlook does practically nothing, as I want to do it, and it disappoints me a lot. (I'm not trying to start a fiery war here, he should do exactly what the CEO wants to do, but I'm not the CEO.)

I would like to be able to automatically extract thousands of emails and attachments now in my Outlook account and save them in my own alternative storage format, where I can easily search and organize them the way I want. (I do not request offers for the new format.)

Maybe some good open source program can already do this ... that would be great. Please let me know.

Otherwise, how can I get the contents of the message and attachments without manually transferring the huge collection? Even if I could only get the content of the message and the names of the attachments, that would be enough. Is there any documentation for the Outlook mail storage format? Is there a way to query Outlook for data?

Maybe there is an alternative approach that I have not considered?

My preferred language for this is C #, but I can use others if necessary.

+5
source share
2 answers

Outlook Redemption - , , . . , .

. , , . , , , .

    private RDOSession _MailSession = new RDOSession();
    private RDOFolder _IncommingInbox;
    private RDOFolder _ArchiveFolder;
    private string _SaveAttachmentPath;

    public MailBox(string Logon_Profile, string IncommingMailPath, 
                   string ArchiveMailPath, string SaveAttPath)
    {
        _MailSession.Logon(Logon_Profile, null, null, true, null, null);
        _IncommingInbox = _MailSession.GetFolderFromPath(IncommingMailPath);
        _ArchiveFolder = _MailSession.GetFolderFromPath(ArchiveMailPath);
        _SaveAttachmentPath = SaveAttPath;
    }
public void ProcessMail()
        {

            foreach (RDOMail msg in _IncommingInbox.Items)
            {
                foreach (RDOAttachment attachment in msg.Attachments)
                {
                    attachment.SaveAsFile(_SaveAttachmentPath + attachment.FileName);
                    }
                }
                if (msg.Body != null)
                {
                    ProcessBody(msg.Body);
                }

            }

        }

MailBox pwaMail = new MailBox("Self Email User", @"\\Mailbox - Someone\Inbox",
                              @"\\EMail - Incomming\Backup", @"\\SomePath");
+6

, Outlook Email Extractor codeproject http://69.10.233.10/KB/dotnet/OutlookEmailExtractor.aspx

www.filefriendly.com

+1

All Articles