无法为所有邮件加载Gmail插件 [英] Gmail addon not loading for all messages

查看:73
本文介绍了无法为所有邮件加载Gmail插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个gmail插件,它可以作为某些邮件(而不是所有邮件)的选项加载.具有讽刺意味的是,它并没有加载我要使用插件的特定消息.

I'm programming a gmail addon and it loads as an option for some messages, not for all messages. Ironically, it's not loading for the specific messages I want to use the addon for.

我在应用程序json中具有以下内容:

I have the following in the application json:

    {
  "oauthScopes": [
    "https://www.googleapis.com/auth/gmail.addons.execute",
    "https://www.googleapis.com/auth/gmail.readonly"
  ],
  "gmail": {
    "name": "My Addon",
    "logoUrl": "https://www.gstatic.com/images/icons/material/system/2x/bookmark_black_24dp.png",
    "contextualTriggers": [{
      "unconditional": {},
      "onTriggerFunction": "buildAddOn"
    }],
    "primaryColor": "#4285F4",
    "secondaryColor": "#4285F4"
  }
}

Gmail插件文档说,无条件"是上下文触发器的唯一值,这意味着该插件应为每条消息打开.有什么想法为什么它不会加载一些?

Gmail addon documentation says that "unconditional" is the only value for contextual triggers, meaning that the addon should open for each and every message. Any ideas why it would not load for some?

作为背景,该插件将用于将自动生成的电子邮件(由我的组织的房间预订系统生成)中的事件信息插入表单,以将其添加到适当的Google日历中.我想不出任何有关消息本身的信息,这会导致该附加组件不可用,尤其是因为该附加组件据称别无选择,只能运行所有消息.

As background, the addon will be used to plug event information from an automatically generated email (generated by my org's room reservation system) into a form to add it to appropriate Google Calendars. I can't think of anything about the message itself that would make the addon unavailable, especially since the addon supposedly has no choice but to run for all messages.

奇怪的是,如果我将自动消息转发给自己,它会起作用;那么加载项就会加载.

Oddly enough, it works if I forward the auto message to myself; then the addon will load.

推荐答案

当Google无法识别电子邮件的发件人时,就会发生这种情况.在未加载附件的电子邮件中,请注意,除了不显示联系人图片或其姓名缩写以外,它还会显示?.

This happens when Google doesn't recognize the sender of the email. On the emails that do not load the Add-On notice that instead of showing the contacts picture or their initials it will show a ?.

已在此处报告此情况 https://issuetracker.google.com/issues/112064778

这篇关于无法为所有邮件加载Gmail插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆