Skip to content

Gmail 节点邮件线程操作#

¥Gmail node Thread Operations

使用线程操作来删除、回复、删除、恢复、添加/移除标签、获取线程或列出线程。有关 Gmail 节点本身的更多信息,请参阅 Gmail 节点

¥Use the Thread operations to delete, reply to, trash, untrash, add/remove labels, get one, or list threads. Refer to the Gmail node for more information on the Gmail node itself.

为线程添加标签#

¥Add Label to a thread

使用此操作创建新的草稿。

¥Use this operation to create a new draft.

请输入以下参数:

¥Enter these parameters:

  • 选择要连接的凭据或创建新凭据。

¥Select the Credential to connect with or create a new one.

  • 资源:选择“线程”。

¥Resource: Select Thread.

  • 操作:选择添加标签。

¥Operation: Select Add Label.

  • 线程 ID:请输入要添加标签的讨论串的 ID。

¥Thread ID: Enter the ID of the thread you want to add the label to.

  • 标签名称或 ID:选择要应用的标签名称,或输入表达式以指定 ID。下拉列表将根据你选择的凭据自动填充。

¥Label Names or IDs: Select the Label names you want to apply or enter an expression to specify IDs. The dropdown populates based on the Credential you selected.

请参阅 Gmail API 方法:users.threads.modify 文档,了解更多信息。

¥Refer to the Gmail API Method: users.threads.modify documentation for more information.

删除线程#

¥Delete a thread

使用此操作立即永久删除对话主题及其所有消息。

¥Use this operation to immediately and permanently delete a thread and all its messages.

Permanent deletion

此操作无法撤消。对于可恢复的删除操作,请改用 回收站操作

¥This operation can't be undone. For recoverable deletions, use the Trash operation instead.

请输入以下参数:

¥Enter these parameters:

  • 选择要连接的凭据或创建新凭据。

¥Select the Credential to connect with or create a new one.

  • 资源:选择“线程”。

¥Resource: Select Thread.

  • 操作:选择“删除”。

¥Operation: Select Delete.

  • 线程 ID:请输入要删除的讨论串的 ID。

¥Thread ID: Enter the ID of the thread you want to delete.

请参阅 Gmail API 方法:users.threads.delete 文档,了解更多信息。

¥Refer to the Gmail API Method: users.threads.delete documentation for more information.

获取主题#

¥Get a thread

使用此操作获取单个主题。

¥Use this operation to get a single thread.

请输入以下参数:

¥Enter these parameters:

  • 选择要连接的凭据或创建新凭据。

¥Select the Credential to connect with or create a new one.

  • 资源:选择“线程”。

¥Resource: Select Thread.

  • 操作:选择“获取”。

¥Operation: Select Get.

  • 线程 ID:输入要检索的帖子 ID。

¥Thread ID: Enter the ID of the thread you wish to retrieve.

  • 简化:选择是否返回简化版响应(已开启)或原始数据(已关闭)。默认值为开启。

¥Simplify: Choose whether to return a simplified version of the response (turned on) or the raw data (turned off). Default is on.

  • 这与将 API 调用的 format 设置为 metadata 相同,它会返回电子邮件消息 ID、标签和电子邮件标头,包括:发件人、收件人、抄送、密送和主题。

    ¥This is the same as setting the format for the API call to metadata, which returns email message IDs, labels, and email headers, including: From, To, CC, BCC, and Subject.

获取线程选项#

¥Get thread options

使用这些选项来进一步细化节点的行为:

¥Use these options to further refine the node's behavior:

  • 仅返回消息:选择是否仅返回线程消息(已启用)。

¥Return Only Messages: Choose whether to return only thread messages (turned on).

请参阅 Gmail API 方法:users.threads.get 文档,了解更多信息。

¥Refer to the Gmail API Method: users.threads.get documentation for more information.

获取多个主题#

¥Get Many threads

使用此操作获取两个或多个主题。

¥Use this operation to get two or more threads.

请输入以下参数:

¥Enter these parameters:

  • 选择要连接的凭据或创建新凭据。

¥Select the Credential to connect with or create a new one.

  • 资源:选择“线程”。

¥Resource: Select Thread.

  • 操作:选择“获取多个”。

¥Operation: Select Get Many.

  • 返回全部:选择节点是否返回所有线程(已开启)或仅返回不超过设定限制的线程(已关闭)。

¥Return All: Choose whether the node returns all threads (turned on) or only up to a set limit (turned off).

  • 限制:请输入要返回的最大线程数。仅当你关闭“全部返回”时使用。

¥Limit: Enter the maximum number of threads to return. Only used if you've turned off Return All.

获取多个主题筛选条件#

¥Get Many threads filters

使用这些过滤器进一步优化节点的行为:

¥Use these filters to further refine the node's behavior:

  • 包含垃圾邮件和已删除邮件:选择节点是否应接收垃圾邮件和已删除邮件文件夹中的邮件线程(开启)或不接收(关闭)。

¥Include Spam and Trash: Select whether the node should get threads in the Spam and Trash folders (turned on) or not (turned off).

  • 标签名称或 ID:仅返回添加了所选标签的线程。选择要应用的标签名称,或输入表达式以指定 ID。下拉列表将根据你选择的凭据自动填充。

¥Label Names or IDs: Only return threads with the selected labels added to them. Select the Label names you want to apply or enter an expression to specify IDs. The dropdown populates based on the Credential you selected.

  • 搜索间隔:输入 Gmail 搜索筛选过滤器(例如 from:)以筛选返回的邮件线程。有关更多信息,请参阅 在 Gmail 中优化搜索

¥Search: Enter Gmail search refine filters, like from:, to filter the threads returned. Refer to Refine searches in Gmail for more information.

  • 读取状态:选择接收未读邮件和已读邮件、仅接收未读邮件(默认)或仅接收已读邮件。

¥Read Status: Choose whether to receive Unread and read emails, Unread emails only (default), or Read emails only.

  • 接收时间之后:仅返回指定日期和时间之后收到的电子邮件。使用日期选择器选择日期和时间,或输入表达式以将日期设置为 ISO 格式的字符串或以毫秒为单位的时间戳。有关字符串格式的更多信息,请参阅 ISO 8601

¥Received After: Return only those emails received after the specified date and time. Use the date picker to select the day and time or enter an expression to set a date as a string in ISO format or a timestamp in milliseconds. Refer to ISO 8601 for more information on formatting the string.

  • 接收时间之前:仅返回指定日期和时间之前收到的电子邮件。使用日期选择器选择日期和时间,或输入表达式以将日期设置为 ISO 格式的字符串或以毫秒为单位的时间戳。有关字符串格式的更多信息,请参阅 ISO 8601

¥Received Before: Return only those emails received before the specified date and time. Use the date picker to select the day and time or enter an expression to set a date as a string in ISO format or a timestamp in milliseconds. Refer to ISO 8601 for more information on formatting the string.

请参阅 Gmail API 方法:users.threads.list 文档,了解更多信息。

¥Refer to the Gmail API Method: users.threads.list documentation for more information.

移除线程标签#

¥Remove label from a thread

使用此操作可从对话中移除标签。

¥Use this operation to remove a label from a thread.

请输入以下参数:

¥Enter these parameters:

  • 选择要连接的凭据或创建新凭据。

¥Select the Credential to connect with or create a new one.

  • 资源:选择“线程”。

¥Resource: Select Thread.

  • 操作:选择“移除标签”。

¥Operation: Select Remove Label.

  • 线程 ID:输入要移除标签的帖子 ID。

¥Thread ID: Enter the ID of the thread you want to remove the label from.

  • 标签名称或 ID:选择要移除的标签名称,或输入表达式以指定其 ID。下拉列表将根据你选择的凭据自动填充。

¥Label Names or IDs: Select the Label names you want to remove or enter an expression to specify their IDs. The dropdown populates based on the Credential you selected.

请参阅 Gmail API 方法:users.threads.modify 文档,了解更多信息。

¥Refer to the Gmail API Method: users.threads.modify documentation for more information.

回复消息#

¥Reply to a message

使用此操作可回复消息。

¥Use this operation to reply to a message.

请输入以下参数:

¥Enter these parameters:

  • 选择要连接的凭据或创建新凭据。

¥Select the Credential to connect with or create a new one.

  • 资源:选择“线程”。

¥Resource: Select Thread.

  • 操作:选择“回复”。

¥Operation: Select Reply.

  • 线程 ID:输入要回复的帖子 ID。

¥Thread ID: Enter the ID of the thread you want to reply to.

  • 消息片段或 ID:选择要回复的消息,或输入表达式以指定其 ID。下拉列表将根据你选择的凭据自动填充。

¥Message Snippet or ID: Select the Message you want to reply to or enter an expression to specify its ID. The dropdown populates based on the Credential you selected.

  • 选择电子邮件类型。选择文本或 HTML 格式。

¥Select the Email Type. Choose from Text or HTML.

  • 消息:输入邮件正文。

¥Message: Enter the email message body.

回复选项#

¥Reply options

使用这些选项来进一步细化节点的行为:

¥Use these options to further refine the node's behavior:

  • 附件:选择添加附件以添加附件。输入附件字段名称(在“输入”中),以标识输入节点中的哪个字段包含附件。

¥Attachments: Select Add Attachment to add an attachment. Enter the Attachment Field Name (in Input) to identify which field from the input node contains the attachment.

  • 对于多个属性,请输入以逗号分隔的列表。

    ¥For multiple properties, enter a comma-separated list.

  • BCC:输入一个或多个密送收件人的电子邮件地址。用逗号分隔多个电子邮件地址,例如 jay@gatsby.com, jon@smith.com

¥BCC: Enter one or more email addresses for blind copy recipients. Separate multiple email addresses with a comma, for example jay@gatsby.com, jon@smith.com.

  • CC:输入一个或多个抄送收件人的电子邮件地址。用逗号分隔多个电子邮件地址,例如 jay@gatsby.com, jon@smith.com

¥CC: Enter one or more email addresses for carbon copy recipients. Separate multiple email addresses with a comma, for example jay@gatsby.com, jon@smith.com.

  • 发件人名称:输入你希望在收件人电子邮件中显示的发件人名称。

¥Sender Name: Enter the name you want displayed in your recipients' email as the sender.

  • 仅回复至发件人:选择是否回复所有人(已关闭)或仅回复发件人(已开启)。

¥Reply to Sender Only: Choose whether to reply all (turned off) or reply to the sender only (turned on).

请参阅 Gmail API 方法:users.messages.send 文档,了解更多信息。

¥Refer to the Gmail API Method: users.messages.send documentation for more information.

删除线程#

¥Trash a thread

使用此操作可将对话及其所有消息移至回收站。

¥Use this operation to move a thread and all its messages to the trash.

请输入以下参数:

¥Enter these parameters:

  • 选择要连接的凭据或创建新凭据。

¥Select the Credential to connect with or create a new one.

  • 资源:选择“线程”。

¥Resource: Select Thread.

  • 操作:选择“回收站”。

¥Operation: Select Trash.

  • 线程 ID:请输入要移至回收站的讨论串的 ID。

¥Thread ID: Enter the ID of the thread you want to move to the trash.

请参阅 Gmail API 方法:users.threads.trash 文档,了解更多信息。

¥Refer to the Gmail API Method: users.threads.trash documentation for more information.

恢复已删除的线程#

¥Untrash a thread

使用此操作可从回收站中恢复对话及其所有消息。

¥Use this operation to recover a thread and all its messages from the trash.

请输入以下参数:

¥Enter these parameters:

  • 选择要连接的凭据或创建新凭据。

¥Select the Credential to connect with or create a new one.

  • 资源:选择“线程”。

¥Resource: Select Thread.

  • 操作:选择“从回收站取出”。

¥Operation: Select Untrash.

  • 线程 ID:请输入要移至回收站的讨论串的 ID。

¥Thread ID: Enter the ID of the thread you want to move to the trash.

请参阅 Gmail API 方法:users.threads.untrash 文档,了解更多信息。

¥Refer to the Gmail API Method: users.threads.untrash documentation for more information.

常见问题#

¥Common issues

有关常见错误或问题以及建议的解决方法,请参阅 常见问题

¥For common errors or issues and suggested resolution steps, refer to Common Issues.