I followed the tutorial to get the Thunderbird extension and was successful in the extension using the load event to work (base "date" example and random text using alert("hey"); both work).
However, I cannot get messages to trigger events. I tried using different types of warnings and it seems my code is not running. For instance:
function send_event_handler( evt ) { alert("hohoho"); } window.addEventListener( "compose-send-message", send_event_handler, true );
How do I get trigger events that allow me to modify message bodies?
My test platform uses Thunderbird 13.
My manifest:
content thundersafe chrome/content/ overlay chrome://messenger/content/messenger.xul chrome://thundersafe/content/thundersafe.xul
source share