I am doing the following:
1. In Lotus Script, I want to run an agent that will run when a new mail has arrived.
2. The agent then gets a handle on it and sends the doc handle to C++ (dll).
3. In the dll, I want to get the Body of the mail message and do some data processing which will then be returned back to the Lotus Script agent.
4. The Script agent then updates a document.
Now for my question...
I know that to get the Handle on the current document, I would need to do the following:
DocDB.GetDocument( (NOTEHANDLE)DocHandle, &CurDoc);
But then since the CurDoc is a mail document, do I then have to convert it to a LNMailMessage in order to get ther Body of the mail? or can I just access teh Body through only LNDocument?
Please help... Thanks!