All pastes #335253 Raw Edit

Miscellany

public javascript v1 · immutable
·published 2007-02-01 06:00 UTC
rendered paste body
// this can be found in the GenericSendMessage() function.// I want to know when this event is fired so I can do something.// what code should I use to do this?        // just before we try to send the message, fire off the compose-send-message event for listeners        // such as smime so they can do any pre-security work such as fetching certificates before sending        var event = document.createEvent('Events');        event.initEvent('compose-send-message', false, true);        document.getElementById("msgcomposeWindow").dispatchEvent(event);