{
  "schemaVersion": "1.0",
  "item": {
    "slug": "mail",
    "name": "Mail",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/ivangdavila/mail",
    "canonicalUrl": "https://clawhub.ai/ivangdavila/mail",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/mail",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mail",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "apple-mail.md",
      "himalaya.md",
      "sending.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/mail"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/mail",
    "agentPageUrl": "https://openagent3.xyz/skills/mail/agent",
    "manifestUrl": "https://openagent3.xyz/skills/mail/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/mail/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Requirements",
        "body": "Binaries:\n\nhimalaya - IMAP/SMTP CLI (brew install himalaya or cargo install himalaya)\nosascript - macOS only, built-in\n\nCredentials:\n\nApp Password for Gmail (not regular password), stored in macOS Keychain\nConfigure in ~/.config/himalaya/config.toml"
      },
      {
        "title": "Data Access",
        "body": "Read-only paths:\n\n~/Library/Mail/V*/MailData/Envelope Index - Apple Mail SQLite database (macOS only)\n~/Library/Mail/V*/MAILBOX/Messages/ - attachment files (macOS only)"
      },
      {
        "title": "Scope",
        "body": "This skill:\n\n✅ Reads email via himalaya CLI or Apple Mail SQLite\n✅ Sends email via himalaya (draft-review-send workflow)\n✅ Searches and filters messages\n❌ NEVER modifies credentials\n❌ NEVER deletes emails without explicit confirmation\n❌ NEVER auto-sends without user review"
      },
      {
        "title": "Quick Reference",
        "body": "TopicFileApple Mail SQLite queriesapple-mail.mdhimalaya CLI patternshimalaya.mdSend/reply protocolsending.md"
      },
      {
        "title": "1. Platform Detection",
        "body": "macOS with Apple Mail: Use SQLite queries (100x faster than AppleScript)\nCross-platform: Use himalaya CLI for full IMAP/SMTP\nNever mix approaches in same task - commit to one to avoid state conflicts"
      },
      {
        "title": "2. Apple Mail SQLite",
        "body": "Query path: ~/Library/Mail/V*/MailData/Envelope\\ Index\nForce sync first: osascript -e 'tell app \"Mail\" to check for new mail' - SQLite reads stale data otherwise\nRecent mail filter: WHERE date_received > strftime('%s','now','-7 days')\nJoin messages→addresses on message_id for sender lookup"
      },
      {
        "title": "3. himalaya CLI",
        "body": "Always use: --output json flag for programmatic parsing\nList emails: himalaya envelope list -o json (NOT message list)\nFolder names are case-sensitive\nRun himalaya folder list after server-side folder changes"
      },
      {
        "title": "4. Send Protocol",
        "body": "Draft-review-send workflow: Compose → show user full content → send after explicit OK\nReply threading: Include In-Reply-To and References headers or thread breaks\nSome SMTP servers reject if From header doesn't match authenticated user"
      },
      {
        "title": "5. Credential Management",
        "body": "macOS Keychain: security add-internet-password -s imap.gmail.com -a user@gmail.com -w 'app-password'\nGmail/Google Workspace: Requires App Password with 2FA enabled\nOAuth: himalaya supports XOAUTH2 via token_cmd in config.toml"
      },
      {
        "title": "6. Thread Intelligence",
        "body": "Thread by In-Reply-To chain, not subject matching\n\"Re:\" prefix is unreliable\nPolling intervals: 15-30 min max; use himalaya envelope watch for real-time"
      }
    ],
    "body": "Requirements\n\nBinaries:\n\nhimalaya - IMAP/SMTP CLI (brew install himalaya or cargo install himalaya)\nosascript - macOS only, built-in\n\nCredentials:\n\nApp Password for Gmail (not regular password), stored in macOS Keychain\nConfigure in ~/.config/himalaya/config.toml\nData Access\n\nRead-only paths:\n\n~/Library/Mail/V*/MailData/Envelope Index - Apple Mail SQLite database (macOS only)\n~/Library/Mail/V*/MAILBOX/Messages/ - attachment files (macOS only)\nScope\n\nThis skill:\n\n✅ Reads email via himalaya CLI or Apple Mail SQLite\n✅ Sends email via himalaya (draft-review-send workflow)\n✅ Searches and filters messages\n❌ NEVER modifies credentials\n❌ NEVER deletes emails without explicit confirmation\n❌ NEVER auto-sends without user review\nQuick Reference\nTopic\tFile\nApple Mail SQLite queries\tapple-mail.md\nhimalaya CLI patterns\thimalaya.md\nSend/reply protocol\tsending.md\nCore Rules\n1. Platform Detection\nmacOS with Apple Mail: Use SQLite queries (100x faster than AppleScript)\nCross-platform: Use himalaya CLI for full IMAP/SMTP\nNever mix approaches in same task - commit to one to avoid state conflicts\n2. Apple Mail SQLite\nQuery path: ~/Library/Mail/V*/MailData/Envelope\\ Index\nForce sync first: osascript -e 'tell app \"Mail\" to check for new mail' - SQLite reads stale data otherwise\nRecent mail filter: WHERE date_received > strftime('%s','now','-7 days')\nJoin messages→addresses on message_id for sender lookup\n3. himalaya CLI\nAlways use: --output json flag for programmatic parsing\nList emails: himalaya envelope list -o json (NOT message list)\nFolder names are case-sensitive\nRun himalaya folder list after server-side folder changes\n4. Send Protocol\nDraft-review-send workflow: Compose → show user full content → send after explicit OK\nReply threading: Include In-Reply-To and References headers or thread breaks\nSome SMTP servers reject if From header doesn't match authenticated user\n5. Credential Management\nmacOS Keychain: security add-internet-password -s imap.gmail.com -a user@gmail.com -w 'app-password'\nGmail/Google Workspace: Requires App Password with 2FA enabled\nOAuth: himalaya supports XOAUTH2 via token_cmd in config.toml\n6. Thread Intelligence\nThread by In-Reply-To chain, not subject matching\n\"Re:\" prefix is unreliable\nPolling intervals: 15-30 min max; use himalaya envelope watch for real-time"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/ivangdavila/mail",
    "publisherUrl": "https://clawhub.ai/ivangdavila/mail",
    "owner": "ivangdavila",
    "version": "1.2.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/mail",
    "downloadUrl": "https://openagent3.xyz/downloads/mail",
    "agentUrl": "https://openagent3.xyz/skills/mail/agent",
    "manifestUrl": "https://openagent3.xyz/skills/mail/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/mail/agent.md"
  }
}