Intercepting the send request from a remote database

Not sure if there is a straight foward solution to this, but I have customized the mail template so that in certain cases when a document is selected, the source is redirected to another database on a remote server and the document is then opened from there. After forwrding this document, the tab (“New Message”) is understandably left behind since the function closeDWAFrame (which ultimately calls out to ELZ in l_stdPageTab) is no longer invoked in the context of the Mail database but, rather, the Forms85 database on the remote server. Is there a way to intercept the send action in the Forms database of the remote server so that it invokes the correct handler on the mail template. Alternatively, is it possible to suppress the message tab so that it does not appear on the view for these redirections?

Many Thanks,

Marc