Thanks so much for responding. Can you tell me what you mean by "a content window"? I'm starting from the tutorial code and modifying it from there, so my manifest looks like this:
content stopignoringreplyto content/
overlay chrome://messenger/content/messenger.xul chrome://stopignoringreplyto/content/stopignoringreplyto.xul
stopignoringreplyto.xul looks like this:
<?xml version="1.0"?>
<overlay id="sample"
xmlns="
http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/javascript" src="chrome://stopignoringreplyto/content/overlay.js"/><!-- A reference to your JavaScript file -->
<statusbar id="status-bar">
<statusbarpanel id="my-panel" label="Date"/>
</statusbar>
</overlay>
and overlay.js looks like this:
window.addEventListener("compose-window-init", function() {
startup();
}, true);
function startup() {
console.log("test");
}
Am I putting something in the wrong place? I'm having trouble telling whether the console message is actually related to my add-on because it's saying that it's from "blank", but I'm not getting the word "test" written to the console when I start to compose a new message, reply or not, and as I understand it that's when the event should be firing, right? The word "test" is being written to the console when the program starts if I replace "compose-window-init" with "load". Thanks again for any help. Like I said, I'm new at Thunderbird add-ons.