Reputation: 1
I'm trying to write a restartless Thunderbird addon to check the addresses on an email before sending it. I think I have that. But it seems that the command to send the mail, if it passes, is no longer working. In the overlay extension I had SendMessage.apply(this,arguments);
Does anyone know how to do this?
All I really have at the moment is the code from the overlay style extension that I'm trying to replace with a restartless one.
if (!SingleDomainSendMessage) {
SingleDomainSendMessage = SendMessage;
SendMessage = function()
{
if (!SingleDomain.check()) { return; }
SingleDomainSendMessage.apply(this, arguments);
};
}
This code is run when a message is sent and if it passes the test in SingleDomain.check
the email is sent.
Upvotes: 0
Views: 38