Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在制作一个将某些电子邮件发送到电子表格的谷歌脚本。我希望脚本每隔几分钟运行一次,但我希望它跳过已经添加到文档中的电子邮件。gmail中有没有比较电子邮件的方法?知道哪个是之前的吗?
谢谢你,柴姆
您可以采取几种方法。
存储您已处理的电子邮件的消息 ID。您可以将其存储在 ScriptDb 或另一个电子表格中。
您可以将消息添加到特定标签,例如“已处理”。并将您的脚本更改为仅适用于没有“已处理”标签的消息。