如何从 Google 脚本中的 Gmail 线程获取准确的消息标签?
How to get the exact message Label from a Gmail thread in Google Script?
有一种方法getLabels()
,但它仅适用于线程。
但是,如果您在 Gmail 设置中关闭线程,则可以单独为邮件设置标签。
如何在 Google 脚本中获取消息标签?
Apps 脚本无法在消息级别处理标签。见相关Apps Script issue.
Gmail 中的标签进程受到线程问题的困扰。这甚至会影响不使用 Apps 脚本的人,请参阅 How do I work around labels being applied to individual messages and not conversations in Gmail?
有一种方法getLabels()
,但它仅适用于线程。
但是,如果您在 Gmail 设置中关闭线程,则可以单独为邮件设置标签。
如何在 Google 脚本中获取消息标签?
Apps 脚本无法在消息级别处理标签。见相关Apps Script issue.
Gmail 中的标签进程受到线程问题的困扰。这甚至会影响不使用 Apps 脚本的人,请参阅 How do I work around labels being applied to individual messages and not conversations in Gmail?