获取 API 密钥
邮箱邮箱

messages.update()

mailbox.messages.update(id, { read?, starred?, folder? }) → Promise<Message>

标记信件已读取或已发送,或移动到其它文件夹。

PATCH3 fieldsfolder moves it
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

await box.messages.update(id, { read: true });
await box.messages.update(id, { starred: true });
await box.messages.update(id, { folder: "trash" });
box.messages.update(message_id, {"read": True})
box.messages.update(message_id, {"starred": True})
box.messages.update(message_id, {"folder": "trash"})
readboolean

读取或未读取 。

starredboolean

已经没命了

folderstring

inbox · sent · drafts · spam · trash移动它。

移动是文件夹更改

将垃圾邮件归档、垃圾邮件和标记都是不同文件夹的电话——一个操作而不是三个,每个都可以通过将文件夹放回来进行反向。

反对删除()

更新({文件夹: "trash" ) }remove()
从普通文件夹移动到废件夹移动到废件夹
从垃圾垃圾—永久删除
向任何地方删除垃圾意味着去那里

点击错误按钮的人应该能够回来。唯一删除的地方是最终的,是整个意思是“在路上”的地方。

uncread 计算后

标记在下一个列表中读取时更改文件夹的数。 没有单独的徽章呼叫 。