I have a Thunderbird add-on and should to fix some bugs.
I need to handle deleting messages and do some actions, but I don't get any information about onDeleteEvent
.
I only found this page and tried to use
document.addEventListener("onMessagesRemoved", function() {
Application.console.log('deleted');
});
But nothing happens.
How I can handle delete messages event?