Thunderbird 3.1 for developers 编辑

Draft
This page is not complete.

This content covers features introduced in Thunderbird 3.1

This page lists the changes in Thunderbird 3.1 that are relevant for developers. For the time being, please also list user-visible changes. (If there are many of these, we will create a separate page for them.)

Alerts

  • In Thunderbird 3 and earlier, there were modal alerts originating from protocol (e.g. imap/pop3) origins display errors such as "Failed to connect to server xxx".
  • In Thunderbird 3.1 and later these are now displayed in the same area as "new mail" notifications, as notifications and do not require dismissing for Thunderbird to continue functioning. The errors are also echoed to the activity manager for later examination if required.

Content Tabs

Folders

  • Folder tree modes can now express parent relationships and tell us which folder a message belongs to. There is a new interface (expected to be implemented by folder tree modes) called IFolderTreeMode. However, for extension developers, this change breaks compatibility. Shifting to the new interface from the 3.0 callback is simple -- the callback maps to generateMap directly, and the other functions should be easy enough to define.

Message Header

Themes

Thunderbird 3.1 supports lightweight themes; these are easy-to-create themes that simply apply a background to the top (URL bar and button bar) and bottom (status bar) of the main mail windows. This is an integration of the existing Personas theme architecture into Thunderbird.

Lightweight themes can be installed from content tabs.

Attachments

  • A new method detachAttachmentsWOPrompts allows extensions to silently detach attachments to a specific folder, with unique file names created if needed to prevent duplicates.

Manipulating message headers

  • Extensions can now use the BatchMessageMover to archive messages. Previously, only the currently selected messages could be archived. Now an extension can silently archive some messages in the background using the standard process instead of determining the right folder and doing the move all by itself. Please note that archiveSelectedMessages has been renamed into archiveMessages to easily check whether this new feature is available.

More resources

Thunderbird 3.1 is code-named "Lanikai".

Release notes and announcements

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:80 次

字数:5545

最后编辑:7年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文