recipe-save-email-attachments
von Google
Gmail-Nachrichten mit Anhängen finden und in einem Google Drive-Ordner speichern.
npx skills add https://github.com/googleworkspace/cli --skill recipe-save-email-attachmentsSave Gmail Attachments to Google Drive
PREREQUISITE: Load the following skills to execute this recipe:
gws-gmail,gws-drive
Find Gmail messages with attachments and save them to a Google Drive folder.
Steps
- Search for emails with attachments:
gws gmail users messages list --params '{"userId": "me", "q": "has:attachment from:[email protected]"}' --format table - Get message details:
gws gmail users messages get --params '{"userId": "me", "id": "MESSAGE_ID"}' - Download attachment:
gws gmail users messages attachments get --params '{"userId": "me", "messageId": "MESSAGE_ID", "id": "ATTACHMENT_ID"}' - Upload to Drive folder:
gws drive +upload --file ./attachment.pdf --parent FOLDER_ID
Mehr Skills von Google
gws-modelarmor-sanitize-response
Google
Google Model Armor: Bereinigen einer Modellantwort durch eine Model Armor-Vorlage.
gws-people
Google
Google People: Kontakte und Profile verwalten.
gws-shared
Google
gws CLI: Gemeinsame Muster für Authentifizierung, globale Flags und Ausgabeformatierung.
gws-sheets
Google
Google Sheets: Tabellen lesen und schreiben.
gws-sheets-append
Google
Google Sheets: Eine Zeile an eine Tabelle anhängen.
gws-sheets-read
Google
Google Sheets: Werte aus einer Tabelle lesen.
gws-slides
Google
Google Slides: Präsentationen lesen und schreiben.
gws-tasks
Google
Google Tasks: Aufgabenlisten und Aufgaben verwalten.