# mail.read

Canonical URL: https://developers.iagenify.com/zh/sdk/workflows/steps/mail-read/
Language: zh

`type: "mail.read"`

阅读账户的邮箱之一在链条中。不需要批准,阅读改变不了任何东西。

Status: box required · no approval · the body is untrusted

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `box` | string | 必填 | 哪个信箱 |
| `folder` | string | inbox | `inbox` · `sent` · `archive` · `spam` · `trash`. |
| `limit` | integer |  | 有多少个? |
| `unread` | boolean |  | 只读过。 |
| `query` | string |  | 而不是搜索列表 。 |

```javascript
{ id: "inbox", type: "mail.read", config: { box: "support@example.com", unread: true, limit: 20 } }
```

## 输出 {#output}

信息,每个信息及其发件人、主题、日期和体体。 [循环环环](/zh/sdk/workflows/steps/loop) 他们的后面,是通常的下一步。

```javascript
{ id: "each", type: "loop", config: {
    over: "{{steps.inbox.output.messages}}", body: "triage", max: 50 } }
```

## 信息就是数据,从来就没有指令 {#untrusted}

> **任何人都可以寄一个**
>
> 内容达到模型的迅速性。 说一下该用它做什么步骤—— 分类、 提取、 总结—— 并且绝不让机构设置任务, 要求转发的信息就是信息。

## 发件人的 HTML 未实现 {#html}

短信中的任何信息都没有被执行过,也没有 HTML 发送者永远发送。

- [循环环环](/zh/sdk/workflows/steps/loop): 处理每个。
- [触发器 · 邮件](/zh/sdk/workflows/triggers/mail): 开始从抵达开始
- [工作流步骤](/zh/sdk/workflows/steps): 全部 23 种类型。

```python
{"id": "inbox", "type": "mail.read", "config": {"box": "support@example.com", "unread": True, "limit": 20}}
```

```python
{"id": "each", "type": "loop", "config": {
    "over": "{{steps.inbox.output.messages}}", "body": "triage", "max": 50}}
```
