高风险
“草拟”流程实际直接发送文档全文,可能造成未经确认的数据披露
原文依据:2 处发现了什么
名称称其用于“Draft a Gmail Message”,但执行步骤调用 `+send`,并未创建草稿,也没有要求用户核对收件人、正文或批准发送。它还要求复制文档正文,而没有限定可披露范围。
为什么需要注意
若文档包含机密、个人或内部信息,运行该步骤会立即把内容交给指定收件人;错误地址、示例地址未替换或用户原本只想预览草稿时,都可能导致不可撤回的外发邮件。
该风险有源码支持。技能将用途表述为“Draft”,但实际流程先读取指定 Google Doc、复制正文,再调用 Gmail 的 `+send` 直接发往收件人;可见步骤没有创建草稿或发送前确认。如果代理获得相应文档和 Gmail 权限并执行流程,文档内容可能在用户核对收件人、主题和披露范围前被发送。用户可要求作者改为创建 Gmail 草稿,并在发送前明确展示收件人、主题和正文供确认;也可限制其 Gmail 权限为仅创建草稿。
# Draft a Gmail Message from a Google Doc> **PREREQUISITE:** Load the following skills to execute this recipe: `gws-docs`, `gws-gmail`Read content from a Google Doc and use it as the body of a Gmail message.查看另外 1 个位置
1. Get the document content: `gws docs documents get --params '{"documentId": "DOC_ID"}'`2. Copy the text from the body content3. Send the email: `gws gmail +send --to recipient@example.com --subject 'Newsletter Update' --body 'CONTENT_FROM_DOC'`