SuperAPI AI 工具集

thunderbird-extension

编程与开发

查看项目

更新于 10-15 20:13

技能介绍

用途:为 Mozilla Thunderbird 邮件扩展(MailExtension,基于 WebExtensions)的开发、测试与发布提供参考。

主要能力:说明 Thunderbird 使用 messenger.* 命名空间(邮件专用)加 browser.(通用 WebExtensions);自 128 版起同时支持 Manifest V2 与 V3。涵盖 Thunderbird 专有 API:accounts、addressBooks、compose、folders、mailTabs、messages、messageDisplay。列出清单键,如 browser_specific_settings.gecko.id、strict_min_version、background、action/browser_action、compose_action、message_display_action、permissions、experiment_apis、commands、options_ui。给出 MV2 与 MV3 差异:工具栏按钮 browser_action 对 action,后台 background.scripts 对 background.service_worker,脚本注入 tabs.executeScript 对 messenger.scripting.messageDisplay.executeScript,撰写脚本 composeScripts 对 scripting.compose,联系人 API messenger.contacts. 对 messenger.addressBooks.contacts.*(仅 vCard)。还涉及消息显示脚本、UI 按钮点击监听、徽标与图标更新、错误处理、性能与安全建议,以及目录结构模板。

使用方式:按需加载参考文件,如 ./references/messenger-apis.md、./references/experiment-apis.md、./references/atn-submission.md、./references/testing-migration.md。开发流程为编写代码、临时加载、用 Debug Add-ons 检查、测试、打包 .zip、上传 ATN 并回应审核。建议 strict_min_version 设为 "128.0"。

适用场景:开发、调试、迁移和发布 Thunderbird 邮件扩展。

限制:内容脚本仅作用于网页标签,不作用于邮件正文;显示脚本可用 API 有限(runtime、i18n、storage 等);版本低于 115 已弃用,115.x 为旧版且支持结束。具体收费、价格与效果资料未提供。