Lotus Notes Eclipse Listener for QuerySend() Email Form
Posted on 2013-11-24
First of all, I must apologize as I have never developed a notes app that I can remember. So now I have been asked to create a poor mans security application for a notes platform. When the user clicks "SEND" in the email form, it should look for keywords that hint of things that should not be sent and pop-up a warning. It seems the easiest way to do this is to change the form template for QuerySend(). The issue is that I am not the notes admin and we are doing this for only about 2% of the users. Even if I could update the form template for just those users, it would be subject to changes by the notes admin team (i assume). I tried to do it with my account and it seemed to change it, but I used the 9.0 template and our back-end is on 8.5 (i think) and this caused unrelated issues. So then I wondered about the Eclipse plug-in solution. So I see that I can get a plugin working on 8.5 and "install" it if I remove the "locked-down" (no new plug-ins) client and re-install with a fresh version with "install Applications Features" enabled. So my questions are this:
Is the template change feasible?
Is the Plug-in Overkill?
If I go with the plug-in, I see lots of information on setting "parameters/properties" etc and adding new buttons to click etc, but very little information on hooking (listening in java-speak) to the various events in the forms. Particularly I am wondering how to hook to the QuerySend Event (Action?) that is right there in the form. I really like the fact that this event allows cancelling the email sending right in the subroutine.
I am also wondering where can I find good reference about the extension points provided by notes..I see one called com.ibm.notes.mailsend, but it appears to only handle attachment dialog.
Thanks for your time!