javascript - 更改 Gmail 主题行

标签 javascript google-apps-script gmail-api gmail-imap google-apis-explorer

我正在尝试通过在与过滤条件匹配的情况下添加特定单词作为前缀来更改 Gmail 主题。我知道无法使用 Google App 脚本修改主题行。但是否可以使用 GMAIL API 和 App Script 对其进行修改。另外,我是 G-Suite 的成员,所以是否有任何默认配置或内置方法来实现相同的目的。

类似问题:How to edit Gmail messages as they arrive?

最佳答案

从技术上讲,无法通过 Gmail API 修改电子邮件的主题或内容。您只能通过 API 更改标签。

一种可能的解决方法是检索原始邮件,仅更改主题行并在 Gmail 线程中附加邮件 Insert .

关于javascript - 更改 Gmail 主题行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44888438/

相关文章:

php - PHP 和 JS 的时间戳之间的差异

javascript - Angular 2/4/Universal - 如何使用 JSON-LD 数据?

google-apps-script - 如何在 Google Apps 脚本中将页面设置方向从纵向更改为横向?

python - 使用 Gmail API 获取 Google 群组电子邮件

c# - Gmail API - 值 '= Get Labels google-api-dotnet-client/1.25.0.0 (gzip)' 的格式无效

email - 无法与主机 smtp.gmail.com 建立连接 [权限被拒绝 #13]

javascript - 如何在 Javascript 中将中介器模式与多个中介器实例一起使用?

google-apps-script - 清除第二天表单条目上的脚本错误

javascript - Google Apps 脚本返回正确的值 + 多个不需要的逗号

javascript - Google maps V3 自定义标记图像和 fitBounds()