# Send Exchange2010 to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- 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.
## Suggested prompts
### New install

```text
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.
```
### Upgrade existing

```text
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.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "exchange2010",
    "name": "Exchange2010",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/pes0/exchange2010",
    "canonicalUrl": "https://clawhub.ai/pes0/exchange2010",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/exchange2010",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=exchange2010",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "__init__.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "exchange2010",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T21:25:29.156Z",
      "expiresAt": "2026-05-06T21:25:29.156Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=exchange2010",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=exchange2010",
        "contentDisposition": "attachment; filename=\"exchange2010-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "exchange2010"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/exchange2010"
    },
    "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."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/exchange2010",
    "downloadUrl": "https://openagent3.xyz/downloads/exchange2010",
    "agentUrl": "https://openagent3.xyz/skills/exchange2010/agent",
    "manifestUrl": "https://openagent3.xyz/skills/exchange2010/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/exchange2010/agent.md"
  }
}
```
## Documentation

### exchange2010

Exchange 2010 EWS integration for emails, calendar, contacts, and tasks.

### Setup

Requires credentials in .env.credentials:

EXCHANGE_SERVER=mail.company.com
EXCHANGE_DOMAIN=company
EXCHANGE_EMAIL=user@company.com
EXCHANGE_PASSWORD=your_password

### Features

✅ Email: Read unread, send, search, mark as read
✅ Email Attachments: Download, extract text (PDF, TXT)
✅ Email Folders: Browse Sent, Drafts, Trash, Junk
✅ Calendar: View, create, update, delete, search events
✅ Recurring Events: Detect and manage series
✅ Shared Calendars: Access other Exchange mailboxes
✅ Contacts: Search address book, resolve names (GAL)
✅ Tasks/To-Do: Manage, create, complete tasks
✅ Out-of-Office: Read and set absence messages
✅ EWS Filters: Fast search with subject__contains, start__gte, etc.
✅ List Calendars: Show all calendar folders

### Read Emails

from skills.exchange2010 import get_account, get_unread_emails

account = get_account()
emails = get_unread_emails(account, limit=10)
for email in emails:
    print(f"{email['subject']} from {email['sender']}")

### Today's Events

from skills.exchange2010 import get_today_events

# Your own events
today = get_today_events()

# Events from shared calendar
today = get_today_events('shared@company.com')

### Search Events

from skills.exchange2010 import search_calendar_by_subject
from datetime import date

# Fast search for Ekadashi
ekadashi = search_calendar_by_subject(
    email_address='shared@company.com',
    search_term='Ekadashi',
    start_date=date(2025, 1, 1),
    end_date=date(2026, 12, 31)
)
print(f"Found: {len(ekadashi)} events")

### Create Event

from skills.exchange2010 import create_calendar_event
from datetime import datetime

create_calendar_event(
    subject="Team Meeting",
    start=datetime(2026, 2, 7, 14, 0),
    end=datetime(2026, 2, 7, 15, 0),
    body="Project discussion",
    location="Conference Room A"
)

### Update Event

from skills.exchange2010 import update_calendar_event
from datetime import datetime

# Reschedule
update_calendar_event(
    event_id='AAQkAG...',
    start=datetime(2026, 2, 10, 14, 0),
    end=datetime(2026, 2, 10, 15, 0),
    location="New Room B"
)

### Browse Email Folders

from skills.exchange2010 import get_folder_emails, list_email_folders

# List all folders
folders = list_email_folders(account)
for f in folders:
    print(f"{f['name']}: {f['unread_count']} unread")

# Sent Items
sent = get_folder_emails('sent', limit=10)

# Drafts
drafts = get_folder_emails('drafts')

# Trash
trash = get_folder_emails('trash')

### Search Emails

from skills.exchange2010 import search_emails

# By sender
emails = search_emails(sender='boss@company.com', limit=10)

# By subject
emails = search_emails(subject='Invoice', folder='inbox')

# Unread only
emails = search_emails(is_unread=True, limit=20)

### Mark Email as Read

from skills.exchange2010 import mark_email_as_read

mark_email_as_read(email_id='AAQkAG...')

### Download Attachments

from skills.exchange2010 import get_email_attachments

# Show info
attachments = get_email_attachments(email_id='AAQkAG...')
for att in attachments:
    print(f"{att['name']}: {att['size']} bytes")

# Download
attachments = get_email_attachments(
    email_id='AAQkAG...',
    download_path='/tmp/email_attachments'
)

### Extract Text from Attachments

Prerequisite: pip install PyPDF2 for PDF text extraction

from skills.exchange2010 import process_attachment_content

results = process_attachment_content(email_id='AAQkAG...')
for result in results:
    print(f"File: {result['name']}")
    if 'extracted_text' in result:
        print(f"Content: {result['extracted_text'][:500]}...")

### Search Contacts

from skills.exchange2010 import search_contacts, resolve_name

# Search contacts
contacts = search_contacts('John Doe')
for c in contacts:
    print(f"{c['name']}: {c['email']}")

# Resolve name (GAL)
result = resolve_name('john.doe@company.com')
if result:
    print(f"Found: {result['name']} - {result['email']}")

### Manage Tasks

from skills.exchange2010 import get_tasks, create_task, complete_task, delete_task
from datetime import datetime, timedelta

# Show open tasks
tasks = get_tasks()
for task in tasks:
    status = '✅' if task['is_complete'] else '⏳'
    print(f"{status} {task['subject']}")

# Create new task
task_id = create_task(
    subject="Finish report",
    body="Q1 report due Friday",
    due_date=datetime.now() + timedelta(days=3),
    importance="High"
)

# Mark as complete
complete_task(task_id)

# Delete
delete_task(task_id)

### Find Recurring Events

from skills.exchange2010 import get_recurring_events

recurring = get_recurring_events(
    email_address='shared@company.com',
    days=30
)
for r in recurring:
    print(f"{r['subject']}: {r['recurrence']}")

### Out-of-Office

from skills.exchange2010 import get_out_of_office, set_out_of_office
from datetime import datetime, timedelta

# Check status
oof = get_out_of_office()
print(f"Out of office active: {oof['enabled']}")

# Enable
set_out_of_office(
    enabled=True,
    internal_reply="I am on vacation until Feb 15th.",
    external_reply="I am on vacation until Feb 15th.",
    start=datetime.now(),
    end=datetime.now() + timedelta(days=7),
    external_audience='All'  # 'All', 'Known', 'None'
)

# Disable
set_out_of_office(enabled=False, internal_reply="")

### Send Email

from skills.exchange2010 import send_email

send_email(
    to=["recipient@example.com"],
    subject="Test",
    body="Hello!",
    cc=["cc@example.com"]
)

### Email

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

### Email Folders

FunctionDescriptionget_folder_emails(folder_name, limit, is_unread)Emails from folderlist_email_folders(account)List all folders

### Calendar

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

### Contacts

FunctionDescriptionsearch_contacts(search_term, limit)Search contactsresolve_name(name)Resolve name (GAL)

### Tasks

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

### Out-of-Office

FunctionDescriptionget_out_of_office(email_address)Read statusset_out_of_office(enabled, internal_reply, ...)Set OOF

### Notes

Exchange 2010 SP2 explicitly used as version
DELEGATE access type for own and shared mailboxes
EWS Filters (subject__contains, start__gte) are faster than iteration
Timezones: Automatic conversion to EWSDateTime with UTC
27 functions available in total
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: pes0
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-29T21:25:29.156Z
- Expires at: 2026-05-06T21:25:29.156Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/exchange2010)
- [Send to Agent page](https://openagent3.xyz/skills/exchange2010/agent)
- [JSON manifest](https://openagent3.xyz/skills/exchange2010/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/exchange2010/agent.md)
- [Download page](https://openagent3.xyz/downloads/exchange2010)