{"id":"67c0a22d-a725-4af9-8d91-6737a726bce1","slug":"clawhub-534422530-laosi-email-helper","name":"Email Helper Pro","description":"邮件助手 - 编写/发送/管理邮件，支持SMTP发信和IMAP收信，多模板草稿，自动归档","canonicalUrl":"https://www.xpersona.co/agent/clawhub-534422530-laosi-email-helper","sourceUrl":"https://clawhub.ai/534422530/laosi-email-helper","homepage":"https://clawhub.ai/534422530/skills/laosi-email-helper","source":"CLAWHUB","vendor":{"slug":"clawhub","label":"Clawhub","url":"https://clawhub.ai/534422530/skills/laosi-email-helper"},"protocols":["OPENCLEW"],"capabilities":[],"trustScore":null,"trustConfidence":"unknown","artifactCount":0,"benchmarkCount":0,"lastRelease":"2.0.0","freshnessAt":"2026-10-11T14:00:57.991Z","freshnessLabel":"Oct 11, 2026","securityReviewed":true,"openapiReady":false,"stats":[{"label":"Trust score","value":"Unknown"},{"label":"Compatibility","value":"OpenClaw"},{"label":"Freshness","value":"Oct 11, 2026"},{"label":"Vendor","value":"Clawhub"},{"label":"Artifacts","value":"0"},{"label":"Benchmarks","value":"0"},{"label":"Last release","value":"2.0.0"}],"factsPreview":[{"factKey":"vendor","category":"vendor","label":"Vendor","value":"Clawhub","href":"https://clawhub.ai/534422530/skills/laosi-email-helper","sourceUrl":"https://clawhub.ai/534422530/skills/laosi-email-helper","sourceType":"profile","confidence":"medium","observedAt":"2026-10-11T14:00:58.047Z","isPublic":true},{"factKey":"protocols","category":"compatibility","label":"Protocol compatibility","value":"OpenClaw","href":"https://www.xpersona.co/api/v1/agents/clawhub-534422530-laosi-email-helper/contract","sourceUrl":"https://www.xpersona.co/api/v1/agents/clawhub-534422530-laosi-email-helper/contract","sourceType":"contract","confidence":"medium","observedAt":"2026-10-11T14:00:58.047Z","isPublic":true},{"factKey":"traction","category":"adoption","label":"Adoption signal","value":"1.1K downloads","href":"https://clawhub.ai/534422530/laosi-email-helper","sourceUrl":"https://clawhub.ai/534422530/laosi-email-helper","sourceType":"profile","confidence":"medium","observedAt":"2026-10-11T14:00:58.047Z","isPublic":true},{"factKey":"latest_release","category":"release","label":"Latest release","value":"2.0.0","href":"https://clawhub.ai/534422530/laosi-email-helper","sourceUrl":"https://clawhub.ai/534422530/laosi-email-helper","sourceType":"release","confidence":"medium","observedAt":"2026-05-29T23:31:24.317Z","isPublic":true},{"factKey":"handshake_status","category":"security","label":"Handshake status","value":"UNKNOWN","href":"https://www.xpersona.co/api/v1/agents/clawhub-534422530-laosi-email-helper/trust","sourceUrl":"https://www.xpersona.co/api/v1/agents/clawhub-534422530-laosi-email-helper/trust","sourceType":"trust","confidence":"medium","observedAt":null,"isPublic":true}],"highlights":["1.1K downloads","Trust evidence available"],"agentCard":{"name":"Email Helper Pro","description":"邮件助手 - 编写/发送/管理邮件，支持SMTP发信和IMAP收信，多模板草稿，自动归档","source":"CLAWHUB","sourceId":"clawhub:s170k9770tgh0506hw0dwtb6pd83kwyq:laosi-email-helper","homepage":"https://clawhub.ai/534422530/skills/laosi-email-helper","repository":"https://clawhub.ai/534422530/laosi-email-helper","documentation":"https://www.xpersona.co/agent/clawhub-534422530-laosi-email-helper","protocols":["OPENCLEW"],"examples":[{"kind":"example","language":"python","snippet":"import os, json, smtplib, imaplib, email\nfrom email.mime.text import MIMEText\nfrom email.mime.multipart import MIMEMultipart\nfrom datetime import datetime\nfrom typing import List, Optional\n\nDRAFT_FILE = os.path.join(os.path.dirname(__file__), \"email_drafts.json\")\n\nclass EmailHelper:\n    def __init__(self):\n        os.makedirs(os.path.dirname(DRAFT_FILE), exist_ok=True)\n        self.drafts = self._load_drafts()\n    \n    def _load_drafts(self) -> list:\n        if os.path.exists(DRAFT_FILE):\n            with open(DRAFT_FILE, encoding=\"utf-8\") as f:\n                return json.load(f)\n        return []\n    \n    def _save_drafts(self):\n        with open(DRAFT_FILE, \"w\", encoding=\"utf-8\") as f:\n            json.dump(self.drafts, f, ensure_ascii=False, indent=2)\n    \n    def create_draft(self, to_addr: str, subject: str, body: str,\n                     cc: str = \"\", bcc: str = \"\") -> dict:\n        \"\"\"创建邮件草稿\"\"\"\n        draft = {\n            \"id\": len(self.drafts) + 1,\n            \"to\": to_addr,\n            \"cc\": cc,\n            \"bcc\": bcc,\n            \"subject\": subject,\n            \"body\": body,\n            \"status\": \"draft\",\n            \"created\": datetime.now().isoformat(),\n        }\n        self.drafts.append(draft)\n        self._save_drafts()\n        return draft\n    \n    def build_mime(self, draft_id: int) -> Optional[MIMEMultipart]:\n        \"\"\"将草稿构建为MIME消息\"\"\"\n        draft = next((d for d in self.drafts if d[\"id\"] == draft_id), None)\n        if not draft:\n            return None\n        \n        msg = MIMEMultipart()\n        msg[\"From\"] = draft.get(\"from_addr\", \"sender@example.com\")\n        msg[\"To\"] = draft[\"to\"]\n        if draft.get(\"cc\"):\n            msg[\"Cc\"] = draft[\"cc\"]\n        msg[\"Subject\"] = draft[\"subject\"]\n        msg.attach(MIMEText(draft[\"body\"], \"plain\", \"utf-8\"))\n        return msg\n    \n    def send(self, draft_id: int, smtp_host: str, smtp_port: int,\n             username: str, password: str, use_tls: bool = True) -> dict:\n        \"\"\"通过SMTP发送草�?\"\"\n  "},{"kind":"example","language":"python","snippet":"TEMPLATES = {\n    \"weekly_report\": {\n        \"subject\": \"Weekly Report - {date}\",\n        \"body\": \"Hi {name},\\n\\n{content}\\n\\nBest,\\n{sender}\"\n    },\n    \"meeting_invite\": {\n        \"subject\": \"Meeting: {topic} - {date}\",\n        \"body\": \"Hi {name},\\n\\nYou're invited to {topic} at {time}.\\n\\nAgenda:\\n{agenda}\\n\\nRegards,\\n{sender}\"\n    },\n    \"follow_up\": {\n        \"subject\": \"Re: {topic}\",\n        \"body\": \"Hi {name},\\n\\nFollowing up on {topic}. Any updates?\\n\\nBest,\\n{sender}\"\n    }\n}"}]}}