【问题标题】:Find emails with Google's smartlabels使用 Google 智能标签查找电子邮件
【发布时间】:2017-06-13 17:59:31
【问题描述】:

可以使用搜索条件在某人的 gmail 收件箱中搜索 Google 的智能标签:例如 label:^smartlabel_receipt

但这些标签在使用此 API 列出时不会出现: https://developers.google.com/gmail/api/v1/reference/users/labels/list

是否有隐藏的方式仍然引用此内部 Gmail 标签?

【问题讨论】:

  • 它可能还没有在 API 中可用。我尝试获取列表,但在结果中没有得到任何smartlabel。也许它只是 gmail 页面中的一个功能,可以帮助用户组织他们的邮件。
  • 可以在All Mail文件夹中使用google的扩展搜索命令找到吗?
  • 您能否发布指向此类扩展搜索命令的链接?
  • developers.google.com/gmail/imap_extensions 你想要搜索 X-GM-RAW。

标签: gmail gmail-api gmail-imap


【解决方案1】:

您可以使用 Gmail API 的 messages.list 并附加查询参数。例如,像这样:

GET https://www.googleapis.com/gmail/v1/users/<userId>/messages?q=label:^smartlabel_receipt

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-10-19
    • 1970-01-01
    • 1970-01-01
    • 2017-12-24
    • 1970-01-01
    • 2018-11-03
    • 2020-01-21
    • 1970-01-01
    相关资源
    最近更新 更多