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 從公開儲存庫中收錄這些內容。

檢舉或申請下架