Outlook Redemption MAPI_E_TOO_BIG

Posted on 2008-11-03
Medium Priority
Last Modified: 2012-05-05

I would like to use redemption to save attachments (embedded messages) directly to an outlook folder.
When I iterate through the inbox, I encounter the following error after 250 mails (thats the limit by the exchange server):
Error in IMAPISession::OpenEntry: MAPI_E_TOO_BIG

How do I release the objects correctly ?

Please help
Thanks very much
Best regards
Heinz Dumfart

' sample code (vb.net 2005) just to test iterating:
oMyRDOSession = New Redemption.RDOSession
oMyRDOInbox = MyRDOSession.GetDefaultFolder(Redemption.rdoDefaultFolders.olFolderInbox)
For i = 1 To oMyRDOInbox.Items.Count
  oMyRDOMail = oMyRDOInbox.Items(i)
  Debug.WriteLine(i & vbTab & oMyRDOMail.Subject)
  oMyRDOMail = Nothing
End If

Open in new window

Question by:duh123
1 Comment

Accepted Solution

duh123 earned 0 total points
ID: 22884244
Got support from the developer of Redemption...

Sulution: Do *not* use multiple dot notation and use Marshal.ReleaseComObjects

That works fine!

'Do NOT use eg. 
x = objRDOMail.Attachments.Count
'but use:
objAttachments = objRDOMail.Attachments
x = objAttachments.Count

Open in new window


Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I came across an unsolved Outlook issue and here is my solution.
MS Outlook undoubtedly is the most widely used email client.Its user-friendliness, cost effectiveness, and availability with Microsoft Office Suite make it the most popular email application.  Its compatibility with Microsoft applications like Exch…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question