Any suggestion on how to improve performance when accessing really large MailItem?

Add-in Express™ Support Service
That's what is more important than anything else

Any suggestion on how to improve performance when accessing really large MailItem?
 
nwein




Posts: 577
Joined: 2011-03-28
Our add-in scans the contents of a MailItem.Body, however, when a large email (say ~7mb) is being scanned, Outlook will hang while waiting for the scan to complete.
When debugging, I can see that merely accessing the Body property takes a long time to complete, which makes sense.
What I'm trying to understand is if there's a better way of doing this without affecting Outlook.
Posted 23 Apr, 2020 12:14:53 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Hello Nir,

I would look into using Redemption or Extended MAPI to retrieve the body on a background thread.


Andrei Smolin
Add-in Express Team Leader
Posted 24 Apr, 2020 09:41:20 Top