<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Thunderbird 75 beta 1 is out this week. Here's a list of what
changed in the APIs:</p>
<p><b>The <a moz-do-not-send="true"
href="https://thunderbird-webextensions.readthedocs.io/en/latest/browserAction.html#onclicked-tab-info">onClick
event</a> of the action APIs (browserAction, etc.) now has
information about the active tab and the click event.</b><br>
</p>
<p>This brings the events into line with browser WebExtensions. For
messageDisplayAction, this is a change of behaviour – previously
the ID of the active tab was passed as the first argument. This
change was uplifted to 74 beta 2.</p>
<p><b><a moz-do-not-send="true"
href="https://thunderbird-webextensions.readthedocs.io/en/latest/compose.html#onbeforesend-tab-details">compose.onBeforeSend</a>
now has information about the active tab.</b><br>
</p>
<p>This change was uplifted to 74 beta 2.<br>
</p>
<p><b>The compose API functions <a moz-do-not-send="true"
href="https://thunderbird-webextensions.readthedocs.io/en/latest/compose.html#getcomposedetails-tabid">getComposeDetails</a>/<a
moz-do-not-send="true"
href="https://thunderbird-webextensions.readthedocs.io/en/latest/compose.html#setcomposedetails-tabid-details">setComposeDetails</a>/<a
moz-do-not-send="true"
href="https://thunderbird-webextensions.readthedocs.io/en/latest/compose.html#onbeforesend-tab-details">onBeforeSend</a>
can now handle the message body.</b><br>
</p>
<p>All responses from getComposeDetails calls and onBeforeSend
events now return the message body. How you handle this depends on
the composition mode (plain text or HTML). For plain text
composition mode, the <font face="tt">isPlainText</font> field is
set to true and <font face="tt">plainTextBody</font> should be
used. For HTML composition, <font face="tt">isPlainText</font> is
set to false and <font face="tt">body</font> should be used.</p>
<p>The <font face="tt">body</font> field is a string. You should
parse this to an HTML document before modifying it, and serialise
the document back to a string before calling setComposeDetails. <a
moz-do-not-send="true"
href="https://github.com/thundernest/sample-extensions/tree/master/composeBody">Here's
a sample extension.</a></p>
<p><b>A new event was added: <a moz-do-not-send="true"
href="https://thunderbird-webextensions.readthedocs.io/en/latest/messages.html#onnewmailreceived-folder-messages">messages.onNewMailReceived</a>.</b></p>
<p>Your extension can now be notified of incoming mail. This is
based on the <font face="tt">MailServices.mfn.msgsClassified</font>
notification.</p>
<p>GL<br>
</p>
</body>
</html>