View Single Post
 
Old 11-12-2015, 07:46 AM
Flyguy's Avatar
Flyguy Flyguy is offline
Lost Soul

Super Moderator
* Guru *
 
Join Date: May 2001
Location: Vorlon
Posts: 19,165
Default

Maybe handle it in steps of 100.
So step out of the ExportAttachments method if you have processed 100 emails.
Then everything is closed, including the Outlook session.

Call the ExportAttachments routine in a loop until it doesn't find any unsaved attachments anymore.
Reply With Quote