Safe Email
by @nitansde
Privacy-first workflow for processing explicitly forwarded emails via IMAP in a dedicated inbox. Use only when the user explicitly asks to process the latest...
clawhub install safe-emailπ About This Skill
name: safe-email description: Privacy-first workflow for processing explicitly forwarded emails via IMAP in a dedicated inbox. Use only when the user explicitly asks to process the latest forwarded email. Extract structured information and return safe next-step suggestions; do not auto-read or auto-act on external systems. metadata: openclaw: requires: bins: ["himalaya"] env: - SAFE_EMAIL_IMAP_USERNAME - SAFE_EMAIL_IMAP_APP_PASSWORD capabilities: - imap_read_latest_only - optional_email_delete compliance: explicitTriggerRequired: true autoPollingForbidden: true destructiveActionsNeedConsent: true forwardToDedicatedInboxRequired: true
Safe Email (Privacy-First, Extraction-Only)
Use this skill to safely process forwarded emails from a dedicated inbox via IMAP.
This skill is extraction-only:
What users must know first
1. Use a dedicated inbox (recommended: a brand-new Gmail account). 2. Forward target emails to that dedicated inbox before running this skill. 3. This skill does not auto-check inboxes; it runs only on explicit user instruction.
Required secrets/config (declared in metadata)
SAFE_EMAIL_IMAP_USERNAMESAFE_EMAIL_IMAP_APP_PASSWORDPolicy:
Security rules
1. Never auto-check email without explicit user instruction. 2. Read minimally: only newest relevant message for the request. 3. Deletion is optional and requires explicit consent. 4. Ask before ambiguous or destructive actions.
Setup guide (Gmail + IMAP)
1. Create a dedicated Gmail account for automation.
2. Enable 2-Step Verification.
3. Generate an App Password.
4. Configure IMAP client (example: Himalaya):
- IMAP: imap.gmail.com:993 (TLS)
- SMTP (optional if sending needed elsewhere): smtp.gmail.com:587 (STARTTLS)
Execution workflow
Step 0 β Require explicit trigger
Proceed only if user explicitly asks, e.g.:
Otherwise, stop.
Step 1 β Read newest relevant email only
Step 2 β Extract structured details
Extract as available:
If time/timezone is ambiguous, ask user for confirmation.
Step 3 β Return extraction + suggested next actions
Return: 1. Structured summary 2. Confidence/ambiguities 3. Suggested next actions (examples): - "Create a calendar event" - "Create a reminder/task" - "Draft a reply" - "Archive/delete email"
Do not execute those actions unless user explicitly asks.
Step 4 β Optional email deletion (consent required)
If and only if user explicitly requests deletion: 1. Move processed email to Trash 2. Permanently expunge when supported 3. Report deletion status
If not requested, leave email untouched and state so clearly.