I’m writing an Extension manager Plug-in that intercepts the NSFNOTEUPDATEMAILBOX event before it occurs and extracts information on the File Attachments in a Note.
One of the mysteries I’m trying to solve is the following:
I have a test case where I have an email addressed to 7 recipients, of those 2 IDs are duplicates, 3 IDs will produce routing failures, 1 id is an Internet Address. For this case everything WORKS, my function can read the file attachment information without a problem, a few minutes later I run another test case with 1 recipient which is the same internet id as the first test case. This test fails, with a message that the “database is not opened”. The error occurs when I issue the API NSFNoteExtractWithCallback, Since I’m handling the before event for NSFNOTEUPDATEMAILBOX, I’m not sure what I can do about the error or how it came about. I have tried opening the mail.box and the users mailfile right before I issue the API call, but it does not seem to help.
I reversed the order of the tests, and the more complex test still works, while the single user case fails.
Does anyone have any insight on what is happenning?