gpt4 book ai didi

javascript - GMail Contexual Gadget - 多种模式可匹配多个条件

转载 作者:行者123 更新时间:2023-11-28 09:26:01 24 4
gpt4 key购买 nike

我正在开发一个简单的 GMail 上下文小工具(目前,如果满足 2 个条件,gmail 页面中就会有一个简单的“hello world”)。但我需要匹配双重条件,而不仅仅是一个。因此,我无法使用预装提取器(如果我在 list 中使用两个提取器,使用预装提取器,它们在 OR 条件下工作)。

根据this article有一种方法可以匹配双重条件:

Custom extractors allow developers to trigger their gadget when a series of conditions are met. For example, a developer could write an extractor that triggered a gadget only when “Hello world” appeared in the subject and “jo...@example.com” was the sender of the email. This allows developers to more finely tune their gadgets, and provide even more relevant contextual information.

这正是我所需要的,如果发件人是“xxx@xx.com”,我需要匹配AND主题是“zzz”。

问题是我在 google api page 中找不到有关此问题的任何引用资料

如何在自定义提取器中定义双重 AND 条件

谢谢再见

最佳答案

尝试在某个字段的自定义提取器中使用搜索模式,并在 list 中的其他字段上应用过滤器。

关于javascript - GMail Contexual Gadget - 多种模式可匹配多个条件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14382059/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com