C API - Extension Manager

We use C API of Lotus Domino 8.5, which can be download here http://www14.software.ibm.com/webapp/download/preconfig.jsp?id=2010-06-09+03%3A55%3A06.678420R&S_TACT=104CBW71&S_CMP=

We want to use Extension Manager to pend or block a "send"action (notification ID is EM_MAILSENDNOTE)

There is a sample in the API packet(sample/extmail). In this sample, Extension Manager can catch the “EM_MAILSENDNOTE” and add some text in the end of the mail, then send out the modified mail.

The question is that, we want to catch the action, do some process, then cancel the “send” action, not continue to send out. However, when we try to cancel the action, we find that “EM_MAILSENDNOTE” do not have corresponding directly-callable C API. Then we discover that the return code of callback function is “ERR_EM_CONTINUE”. We try to change the return code to other error code. Luckily, the “send” action is blocked. But, a pop-up window display with the information of the error code.

Here is the question, how can we block the “send” action without any pop-up window?

Eagerly waiting for your reply! Thank you!

Subject: Cancel Send

I know this is old but I thought I would include the answer I found in case someone else searches for it.

If your return -1 this will cancel the send and not popup and error message.