{
  "schemaVersion": "1.0",
  "item": {
    "slug": "exchange-2010-ews",
    "name": "Full access to all Exchange 2010 EWS functions, should work with other EWS Open Source",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/pes0/exchange-2010-ews",
    "canonicalUrl": "https://clawhub.ai/pes0/exchange-2010-ews",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/exchange-2010-ews",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=exchange-2010-ews",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "__init__.py"
    ],
    "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/exchange-2010-ews"
    },
    "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/exchange-2010-ews",
    "agentPageUrl": "https://openagent3.xyz/skills/exchange-2010-ews/agent",
    "manifestUrl": "https://openagent3.xyz/skills/exchange-2010-ews/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/exchange-2010-ews/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": "exchange2010",
        "body": "Exchange 2010 EWS integration for emails, calendar, contacts, and tasks."
      },
      {
        "title": "Setup",
        "body": "Requires credentials in .env.credentials:\n\nEXCHANGE_SERVER=mail.company.com\nEXCHANGE_DOMAIN=company\nEXCHANGE_EMAIL=user@company.com\nEXCHANGE_PASSWORD=your_password"
      },
      {
        "title": "Features",
        "body": "✅ Email: Read unread, send, search, mark as read\n✅ Email Attachments: Download, extract text (PDF, TXT)\n✅ Email Folders: Browse Sent, Drafts, Trash, Junk\n✅ Calendar: View, create, update, delete, search events\n✅ Recurring Events: Detect and manage series\n✅ Shared Calendars: Access other Exchange mailboxes\n✅ Contacts: Search address book, resolve names (GAL)\n✅ Tasks/To-Do: Manage, create, complete tasks\n✅ Out-of-Office: Read and set absence messages\n✅ EWS Filters: Fast search with subject__contains, start__gte, etc.\n✅ List Calendars: Show all calendar folders"
      },
      {
        "title": "Read Emails",
        "body": "from skills.exchange2010 import get_account, get_unread_emails\n\naccount = get_account()\nemails = get_unread_emails(account, limit=10)\nfor email in emails:\n    print(f\"{email['subject']} from {email['sender']}\")"
      },
      {
        "title": "Today's Events",
        "body": "from skills.exchange2010 import get_today_events\n\n# Your own events\ntoday = get_today_events()\n\n# Events from shared calendar\ntoday = get_today_events('shared@company.com')"
      },
      {
        "title": "Search Events",
        "body": "from skills.exchange2010 import search_calendar_by_subject\nfrom datetime import date\n\n# Fast search for Ekadashi\nekadashi = search_calendar_by_subject(\n    email_address='shared@company.com',\n    search_term='Ekadashi',\n    start_date=date(2025, 1, 1),\n    end_date=date(2026, 12, 31)\n)\nprint(f\"Found: {len(ekadashi)} events\")"
      },
      {
        "title": "Create Event",
        "body": "from skills.exchange2010 import create_calendar_event\nfrom datetime import datetime\n\ncreate_calendar_event(\n    subject=\"Team Meeting\",\n    start=datetime(2026, 2, 7, 14, 0),\n    end=datetime(2026, 2, 7, 15, 0),\n    body=\"Project discussion\",\n    location=\"Conference Room A\"\n)"
      },
      {
        "title": "Update Event",
        "body": "from skills.exchange2010 import update_calendar_event\nfrom datetime import datetime\n\n# Reschedule\nupdate_calendar_event(\n    event_id='AAQkAG...',\n    start=datetime(2026, 2, 10, 14, 0),\n    end=datetime(2026, 2, 10, 15, 0),\n    location=\"New Room B\"\n)"
      },
      {
        "title": "Browse Email Folders",
        "body": "from skills.exchange2010 import get_folder_emails, list_email_folders\n\n# List all folders\nfolders = list_email_folders(account)\nfor f in folders:\n    print(f\"{f['name']}: {f['unread_count']} unread\")\n\n# Sent Items\nsent = get_folder_emails('sent', limit=10)\n\n# Drafts\ndrafts = get_folder_emails('drafts')\n\n# Trash\ntrash = get_folder_emails('trash')"
      },
      {
        "title": "Search Emails",
        "body": "from skills.exchange2010 import search_emails\n\n# By sender\nemails = search_emails(sender='boss@company.com', limit=10)\n\n# By subject\nemails = search_emails(subject='Invoice', folder='inbox')\n\n# Unread only\nemails = search_emails(is_unread=True, limit=20)"
      },
      {
        "title": "Mark Email as Read",
        "body": "from skills.exchange2010 import mark_email_as_read\n\nmark_email_as_read(email_id='AAQkAG...')"
      },
      {
        "title": "Download Attachments",
        "body": "from skills.exchange2010 import get_email_attachments\n\n# Show info\nattachments = get_email_attachments(email_id='AAQkAG...')\nfor att in attachments:\n    print(f\"{att['name']}: {att['size']} bytes\")\n\n# Download\nattachments = get_email_attachments(\n    email_id='AAQkAG...',\n    download_path='/tmp/email_attachments'\n)"
      },
      {
        "title": "Extract Text from Attachments",
        "body": "Prerequisite: pip install PyPDF2 for PDF text extraction\n\nfrom skills.exchange2010 import process_attachment_content\n\nresults = process_attachment_content(email_id='AAQkAG...')\nfor result in results:\n    print(f\"File: {result['name']}\")\n    if 'extracted_text' in result:\n        print(f\"Content: {result['extracted_text'][:500]}...\")"
      },
      {
        "title": "Search Contacts",
        "body": "from skills.exchange2010 import search_contacts, resolve_name\n\n# Search contacts\ncontacts = search_contacts('John Doe')\nfor c in contacts:\n    print(f\"{c['name']}: {c['email']}\")\n\n# Resolve name (GAL)\nresult = resolve_name('john.doe@company.com')\nif result:\n    print(f\"Found: {result['name']} - {result['email']}\")"
      },
      {
        "title": "Manage Tasks",
        "body": "from skills.exchange2010 import get_tasks, create_task, complete_task, delete_task\nfrom datetime import datetime, timedelta\n\n# Show open tasks\ntasks = get_tasks()\nfor task in tasks:\n    status = '✅' if task['is_complete'] else '⏳'\n    print(f\"{status} {task['subject']}\")\n\n# Create new task\ntask_id = create_task(\n    subject=\"Finish report\",\n    body=\"Q1 report due Friday\",\n    due_date=datetime.now() + timedelta(days=3),\n    importance=\"High\"\n)\n\n# Mark as complete\ncomplete_task(task_id)\n\n# Delete\ndelete_task(task_id)"
      },
      {
        "title": "Find Recurring Events",
        "body": "from skills.exchange2010 import get_recurring_events\n\nrecurring = get_recurring_events(\n    email_address='shared@company.com',\n    days=30\n)\nfor r in recurring:\n    print(f\"{r['subject']}: {r['recurrence']}\")"
      },
      {
        "title": "Out-of-Office",
        "body": "from skills.exchange2010 import get_out_of_office, set_out_of_office\nfrom datetime import datetime, timedelta\n\n# Check status\noof = get_out_of_office()\nprint(f\"Out of office active: {oof['enabled']}\")\n\n# Enable\nset_out_of_office(\n    enabled=True,\n    internal_reply=\"I am on vacation until Feb 15th.\",\n    external_reply=\"I am on vacation until Feb 15th.\",\n    start=datetime.now(),\n    end=datetime.now() + timedelta(days=7),\n    external_audience='All'  # 'All', 'Known', 'None'\n)\n\n# Disable\nset_out_of_office(enabled=False, internal_reply=\"\")"
      },
      {
        "title": "Send Email",
        "body": "from skills.exchange2010 import send_email\n\nsend_email(\n    to=[\"recipient@example.com\"],\n    subject=\"Test\",\n    body=\"Hello!\",\n    cc=[\"cc@example.com\"]\n)"
      },
      {
        "title": "Email",
        "body": "FunctionDescriptionget_account()Connect to Exchangeget_unread_emails(account, limit=50)Get unread emailssearch_emails(search_term, sender, subject, is_unread, folder, limit)Search emailssend_email(to, subject, body, cc, bcc)Send emailmark_email_as_read(email_id)Mark as readget_email_attachments(email_id, download_path)Download attachmentsprocess_attachment_content(email_id, attachment_name)Extract text"
      },
      {
        "title": "Email Folders",
        "body": "FunctionDescriptionget_folder_emails(folder_name, limit, is_unread)Emails from folderlist_email_folders(account)List all folders"
      },
      {
        "title": "Calendar",
        "body": "FunctionDescriptionget_today_events(email_address)Today's eventsget_upcoming_events(email_address, days)Next N daysget_calendar_events(account, start, end)Events in rangeget_shared_calendar_events(email, start, end)Shared calendarsearch_calendar_by_subject(email, term, start, end)Fast searchcreate_calendar_event(subject, start, end, body, location)Create eventupdate_calendar_event(event_id, ...)Update eventget_event_details(event_id)Show detailsdelete_calendar_event(event_id)Delete eventget_recurring_events(email, start, end)Recurring eventslist_available_calendars(account)List calendarscount_ekadashi_events(email, start_year)Count Ekadashi"
      },
      {
        "title": "Contacts",
        "body": "FunctionDescriptionsearch_contacts(search_term, limit)Search contactsresolve_name(name)Resolve name (GAL)"
      },
      {
        "title": "Tasks",
        "body": "FunctionDescriptionget_tasks(status, folder)Get taskscreate_task(subject, body, due_date, importance, categories)Create taskcomplete_task(task_id)Mark completedelete_task(task_id)Delete task"
      },
      {
        "title": "Out-of-Office",
        "body": "FunctionDescriptionget_out_of_office(email_address)Read statusset_out_of_office(enabled, internal_reply, ...)Set OOF"
      },
      {
        "title": "Notes",
        "body": "Exchange 2010 SP2 explicitly used as version\nDELEGATE access type for own and shared mailboxes\nEWS Filters (subject__contains, start__gte) are faster than iteration\nTimezones: Automatic conversion to EWSDateTime with UTC\n27 functions available in total"
      }
    ],
    "body": "exchange2010\n\nExchange 2010 EWS integration for emails, calendar, contacts, and tasks.\n\nSetup\n\nRequires credentials in .env.credentials:\n\nEXCHANGE_SERVER=mail.company.com\nEXCHANGE_DOMAIN=company\nEXCHANGE_EMAIL=user@company.com\nEXCHANGE_PASSWORD=your_password\n\nFeatures\n✅ Email: Read unread, send, search, mark as read\n✅ Email Attachments: Download, extract text (PDF, TXT)\n✅ Email Folders: Browse Sent, Drafts, Trash, Junk\n✅ Calendar: View, create, update, delete, search events\n✅ Recurring Events: Detect and manage series\n✅ Shared Calendars: Access other Exchange mailboxes\n✅ Contacts: Search address book, resolve names (GAL)\n✅ Tasks/To-Do: Manage, create, complete tasks\n✅ Out-of-Office: Read and set absence messages\n✅ EWS Filters: Fast search with subject__contains, start__gte, etc.\n✅ List Calendars: Show all calendar folders\nExamples\nRead Emails\nfrom skills.exchange2010 import get_account, get_unread_emails\n\naccount = get_account()\nemails = get_unread_emails(account, limit=10)\nfor email in emails:\n    print(f\"{email['subject']} from {email['sender']}\")\n\nToday's Events\nfrom skills.exchange2010 import get_today_events\n\n# Your own events\ntoday = get_today_events()\n\n# Events from shared calendar\ntoday = get_today_events('shared@company.com')\n\nSearch Events\nfrom skills.exchange2010 import search_calendar_by_subject\nfrom datetime import date\n\n# Fast search for Ekadashi\nekadashi = search_calendar_by_subject(\n    email_address='shared@company.com',\n    search_term='Ekadashi',\n    start_date=date(2025, 1, 1),\n    end_date=date(2026, 12, 31)\n)\nprint(f\"Found: {len(ekadashi)} events\")\n\nCreate Event\nfrom skills.exchange2010 import create_calendar_event\nfrom datetime import datetime\n\ncreate_calendar_event(\n    subject=\"Team Meeting\",\n    start=datetime(2026, 2, 7, 14, 0),\n    end=datetime(2026, 2, 7, 15, 0),\n    body=\"Project discussion\",\n    location=\"Conference Room A\"\n)\n\nUpdate Event\nfrom skills.exchange2010 import update_calendar_event\nfrom datetime import datetime\n\n# Reschedule\nupdate_calendar_event(\n    event_id='AAQkAG...',\n    start=datetime(2026, 2, 10, 14, 0),\n    end=datetime(2026, 2, 10, 15, 0),\n    location=\"New Room B\"\n)\n\nBrowse Email Folders\nfrom skills.exchange2010 import get_folder_emails, list_email_folders\n\n# List all folders\nfolders = list_email_folders(account)\nfor f in folders:\n    print(f\"{f['name']}: {f['unread_count']} unread\")\n\n# Sent Items\nsent = get_folder_emails('sent', limit=10)\n\n# Drafts\ndrafts = get_folder_emails('drafts')\n\n# Trash\ntrash = get_folder_emails('trash')\n\nSearch Emails\nfrom skills.exchange2010 import search_emails\n\n# By sender\nemails = search_emails(sender='boss@company.com', limit=10)\n\n# By subject\nemails = search_emails(subject='Invoice', folder='inbox')\n\n# Unread only\nemails = search_emails(is_unread=True, limit=20)\n\nMark Email as Read\nfrom skills.exchange2010 import mark_email_as_read\n\nmark_email_as_read(email_id='AAQkAG...')\n\nDownload Attachments\nfrom skills.exchange2010 import get_email_attachments\n\n# Show info\nattachments = get_email_attachments(email_id='AAQkAG...')\nfor att in attachments:\n    print(f\"{att['name']}: {att['size']} bytes\")\n\n# Download\nattachments = get_email_attachments(\n    email_id='AAQkAG...',\n    download_path='/tmp/email_attachments'\n)\n\nExtract Text from Attachments\n\nPrerequisite: pip install PyPDF2 for PDF text extraction\n\nfrom skills.exchange2010 import process_attachment_content\n\nresults = process_attachment_content(email_id='AAQkAG...')\nfor result in results:\n    print(f\"File: {result['name']}\")\n    if 'extracted_text' in result:\n        print(f\"Content: {result['extracted_text'][:500]}...\")\n\nSearch Contacts\nfrom skills.exchange2010 import search_contacts, resolve_name\n\n# Search contacts\ncontacts = search_contacts('John Doe')\nfor c in contacts:\n    print(f\"{c['name']}: {c['email']}\")\n\n# Resolve name (GAL)\nresult = resolve_name('john.doe@company.com')\nif result:\n    print(f\"Found: {result['name']} - {result['email']}\")\n\nManage Tasks\nfrom skills.exchange2010 import get_tasks, create_task, complete_task, delete_task\nfrom datetime import datetime, timedelta\n\n# Show open tasks\ntasks = get_tasks()\nfor task in tasks:\n    status = '✅' if task['is_complete'] else '⏳'\n    print(f\"{status} {task['subject']}\")\n\n# Create new task\ntask_id = create_task(\n    subject=\"Finish report\",\n    body=\"Q1 report due Friday\",\n    due_date=datetime.now() + timedelta(days=3),\n    importance=\"High\"\n)\n\n# Mark as complete\ncomplete_task(task_id)\n\n# Delete\ndelete_task(task_id)\n\nFind Recurring Events\nfrom skills.exchange2010 import get_recurring_events\n\nrecurring = get_recurring_events(\n    email_address='shared@company.com',\n    days=30\n)\nfor r in recurring:\n    print(f\"{r['subject']}: {r['recurrence']}\")\n\nOut-of-Office\nfrom skills.exchange2010 import get_out_of_office, set_out_of_office\nfrom datetime import datetime, timedelta\n\n# Check status\noof = get_out_of_office()\nprint(f\"Out of office active: {oof['enabled']}\")\n\n# Enable\nset_out_of_office(\n    enabled=True,\n    internal_reply=\"I am on vacation until Feb 15th.\",\n    external_reply=\"I am on vacation until Feb 15th.\",\n    start=datetime.now(),\n    end=datetime.now() + timedelta(days=7),\n    external_audience='All'  # 'All', 'Known', 'None'\n)\n\n# Disable\nset_out_of_office(enabled=False, internal_reply=\"\")\n\nSend Email\nfrom skills.exchange2010 import send_email\n\nsend_email(\n    to=[\"recipient@example.com\"],\n    subject=\"Test\",\n    body=\"Hello!\",\n    cc=[\"cc@example.com\"]\n)\n\nAPI Reference\nEmail\nFunction\tDescription\nget_account()\tConnect to Exchange\nget_unread_emails(account, limit=50)\tGet unread emails\nsearch_emails(search_term, sender, subject, is_unread, folder, limit)\tSearch emails\nsend_email(to, subject, body, cc, bcc)\tSend email\nmark_email_as_read(email_id)\tMark as read\nget_email_attachments(email_id, download_path)\tDownload attachments\nprocess_attachment_content(email_id, attachment_name)\tExtract text\nEmail Folders\nFunction\tDescription\nget_folder_emails(folder_name, limit, is_unread)\tEmails from folder\nlist_email_folders(account)\tList all folders\nCalendar\nFunction\tDescription\nget_today_events(email_address)\tToday's events\nget_upcoming_events(email_address, days)\tNext N days\nget_calendar_events(account, start, end)\tEvents in range\nget_shared_calendar_events(email, start, end)\tShared calendar\nsearch_calendar_by_subject(email, term, start, end)\tFast search\ncreate_calendar_event(subject, start, end, body, location)\tCreate event\nupdate_calendar_event(event_id, ...)\tUpdate event\nget_event_details(event_id)\tShow details\ndelete_calendar_event(event_id)\tDelete event\nget_recurring_events(email, start, end)\tRecurring events\nlist_available_calendars(account)\tList calendars\ncount_ekadashi_events(email, start_year)\tCount Ekadashi\nContacts\nFunction\tDescription\nsearch_contacts(search_term, limit)\tSearch contacts\nresolve_name(name)\tResolve name (GAL)\nTasks\nFunction\tDescription\nget_tasks(status, folder)\tGet tasks\ncreate_task(subject, body, due_date, importance, categories)\tCreate task\ncomplete_task(task_id)\tMark complete\ndelete_task(task_id)\tDelete task\nOut-of-Office\nFunction\tDescription\nget_out_of_office(email_address)\tRead status\nset_out_of_office(enabled, internal_reply, ...)\tSet OOF\nNotes\nExchange 2010 SP2 explicitly used as version\nDELEGATE access type for own and shared mailboxes\nEWS Filters (subject__contains, start__gte) are faster than iteration\nTimezones: Automatic conversion to EWSDateTime with UTC\n27 functions available in total"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/pes0/exchange-2010-ews",
    "publisherUrl": "https://clawhub.ai/pes0/exchange-2010-ews",
    "owner": "pes0",
    "version": "1.0.3",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/exchange-2010-ews",
    "downloadUrl": "https://openagent3.xyz/downloads/exchange-2010-ews",
    "agentUrl": "https://openagent3.xyz/skills/exchange-2010-ews/agent",
    "manifestUrl": "https://openagent3.xyz/skills/exchange-2010-ews/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/exchange-2010-ews/agent.md"
  }
}