I have a strange requirement: when a user sends an email from his/her Lotus Notes client, I need to do some checks on the SendTo and CopyTo fields and prompt the user with a message. An example might be, if I see external email addresses in those fields, to prompt the user with a warning. Or if I see email addresses of a specific domain, to prompt the user with some different message.
Also, this needs to be pushed to some users. Not all.
I can modify the Mail Template and code this in there no problem. I can also have a separate Mail Template for those users that need this functionality and leave all others in the Standard Mail Template. But modifying the Template is not a good idea for future changes/enhancements. When servers are updated, you need to move your custom code, refresh designs etc etc. Not good.
So I am thinking of building an eclipse plug-in for this. Feels like this would be the ideal option. No need to modify the template, and the plug-in can be pushed out to specific users. I have never done client side plug-ins (although I have pretty good experience with server side OSGi plug-ins, (old DOTS etc)), so there is going to be a lot of reading and try. But before I start digging, anybody knows if it is possible to "trap" the Send button action in Lotus Notes client with an eclipse plug-in? If not the Send button, is it possible to "trap" the SendMail function in general in Lotus Notes client with an eclipse plug-in so that I can do my checks there and prompt the user?
If yes, documentation-wise, where do you start?