Gmail 插件创建

Gmail addon creation

我正在使用应用程序脚本创建 Gmail 插件。插件现在仅在任何人打开消息时可见,我们如何在登录 gmail 后显示插件,它位于收件箱列表的右侧,所有其他插件都在列表中。

只有 Tasks 和 Keep 等官方 Gmail 插件在主视图中可见,而所有其他插件只能在用户打开邮件时手动触发。

根据 Gmail 插件的 manifest structure,gmail.contextualTriggers 条目 "defines a trigger that fires when the open email meets a specific criteria. When the trigger fires, it executes a specific Apps Script function, usually in order to create new cards and update the UI. Every add-on must define either a contextual trigger and/or a set of universal actions."