Recipe Save Email To Doc

作者 googleworkspacea3768d0e82ad无许可证31K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库昨天更新

Save a Gmail message body into a Google Doc for archival or reference.

AI 生成的概览

将 Gmail 邮件正文保存到 Google 文档,用于归档或备查。

功能
该配方依次说明如何用搜索条件定位 Gmail 邮件、获取邮件内容、创建 Google 文档,并把邮件正文写入该文档。最终产出一个保存了邮件文本的 Google 文档,便于归档或日后查阅。它只是操作说明,不附带任何脚本。
适用场景
当你希望把某封 Gmail 邮件保留在 Google 文档中,而不只是留在邮箱里时使用。适合归档或备查场景,例如留存同事发来的重要更新记录。
运行要求
需要 gws 命令行工具,以及 gws-gmail 和 gws-docs 两个技能,并能访问 Gmail 与 Google 文档账号。不包含脚本,仅为操作步骤说明。

Save a Gmail Message to Google Docs

PREREQUISITE: Load the following skills to execute this recipe: gws-gmail, gws-docs

Save a Gmail message body into a Google Doc for archival or reference.

Steps

  1. Find the message: gws gmail users messages list --params '{"userId": "me", "q": "subject:important from:[email protected]"}' --format table
  2. Get message content: gws gmail users messages get --params '{"userId": "me", "id": "MSG_ID"}'
  3. Create a doc with the content: gws docs documents create --json '{"title": "Saved Email - Important Update"}'
  4. Write the email body: `gws docs +write --document-id DOC_ID --text 'From: [email protected] Subject: Important Update

[EMAIL BODY]'`

来源与署名

来源:googleworkspace/cli位于skills/recipe-save-email-to-doc提交a3768d0

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架