c# - Outlook 2007 MailItem Info - slow -


I am trying to parse Outlook 2007 via e-mail. I need to make it as fast as possible and it seems that there is some problem.

Basically this is:

  foreach (folder fld in outllookApp.Session.Folders) {foreach (mailItem mailItem in fld) {string body = mailItem.Body; }}  

And for 5000 e-mails, it takes 100 seconds, it does not look as if it should be taken anywhere for a long time.

If I add:

  string entry = mailItem.EntryID;  

It ends up for an additional 30 seconds.

I'm writing string manipuling with these strings and writing regular expressions and databases, those 2 lines take up 50% of my order.

talking like this

I think That you have some options here ..

To get this information out of the band, use CDO / RDO in some other process or the map Use Ibls is because it is the fastest way to get the properties, although objections with this and you are in your Prosesin can be brought to a table.

Redemption Cover -

MAPI Tables


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -