← Back to Skills Marketplace
pes0

Exchange2010

by pes0 · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
1302
Downloads
0
Stars
2
Active Installs
2
Versions
Install in OpenClaw
/install exchange2010
Description
Connect to Exchange 2010 to manage emails, calendar events, contacts, tasks, attachments, shared calendars, recurring events, and out-of-office settings.
README (SKILL.md)

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
[email protected]
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

Examples

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('[email protected]')

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='[email protected]',
    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='[email protected]', 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('[email protected]')
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='[email protected]',
    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=["[email protected]"],
    subject="Test",
    body="Hello!",
    cc=["[email protected]"]
)

API Reference

Email

Function Description
get_account() Connect to Exchange
get_unread_emails(account, limit=50) Get unread emails
search_emails(search_term, sender, subject, is_unread, folder, limit) Search emails
send_email(to, subject, body, cc, bcc) Send email
mark_email_as_read(email_id) Mark as read
get_email_attachments(email_id, download_path) Download attachments
process_attachment_content(email_id, attachment_name) Extract text

Email Folders

Function Description
get_folder_emails(folder_name, limit, is_unread) Emails from folder
list_email_folders(account) List all folders

Calendar

Function Description
get_today_events(email_address) Today's events
get_upcoming_events(email_address, days) Next N days
get_calendar_events(account, start, end) Events in range
get_shared_calendar_events(email, start, end) Shared calendar
search_calendar_by_subject(email, term, start, end) Fast search
create_calendar_event(subject, start, end, body, location) Create event
update_calendar_event(event_id, ...) Update event
get_event_details(event_id) Show details
delete_calendar_event(event_id) Delete event
get_recurring_events(email, start, end) Recurring events
list_available_calendars(account) List calendars
count_ekadashi_events(email, start_year) Count Ekadashi

Contacts

Function Description
search_contacts(search_term, limit) Search contacts
resolve_name(name) Resolve name (GAL)

Tasks

Function Description
get_tasks(status, folder) Get tasks
create_task(subject, body, due_date, importance, categories) Create task
complete_task(task_id) Mark complete
delete_task(task_id) Delete task

Out-of-Office

Function Description
get_out_of_office(email_address) Read status
set_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
Usage Guidance
Do not install blindly. The skill's functionality (Exchange EWS access) is plausible, but there are clear mismatches and risky behaviors around credentials: - SKILL.md asks you to put EXCHANGE_SERVER/EXCHANGE_DOMAIN/EXCHANGE_EMAIL/EXCHANGE_PASSWORD in .env.credentials, but the code actually reads PICARD_USERNAME and PICARD_PASSWORD (with EXCHANGE_* used as fallbacks in some places). This will likely cause runtime confusion or failures. - The module reads a .env.credentials file two directories up and indiscriminately injects every KEY=VALUE into os.environ. If that file also contains other secrets (AWS keys, tokens, etc.) those would be loaded into the agent process — a significant exposure risk. - The registry metadata lists no required environment variables; the skill should declare the credentials it needs so you can make an informed consent decision. What to do before installing: - Inspect the .env.credentials file and ensure it contains only the exact Exchange credentials you intend to expose (or better, do not store unrelated secrets there). - Ask the author to fix the inconsistent env variable names (either use EXCHANGE_PASSWORD everywhere or document PICARD_PASSWORD) and update the registry metadata accordingly. - Consider running this in a restricted environment (no access to other secrets) until the credential-loading behavior is fixed. - If you cannot verify or change the code, treat the skill as untrusted and avoid providing real secrets. If the author provides an updated version that documents required env vars correctly and only loads/uses the declared keys (instead of injecting the entire .env file into os.environ), the concerns would be largely resolved.
Capability Analysis
Type: OpenClaw Skill Name: exchange2010 Version: 1.0.0 The skill is classified as suspicious due to its inherently high-risk capabilities, despite being aligned with its stated purpose. It requires and loads full Exchange credentials from `.env.credentials` (`__init__.py`), granting broad access to email, calendar, contacts, and tasks. Key risky capabilities include sending emails to arbitrary recipients, accessing shared mailboxes, and downloading email attachments to a user-specified path (`__init__.py`). While there is no evidence of intentional malicious behavior, data exfiltration to unauthorized endpoints, or prompt injection attempts in `SKILL.md`, the extensive permissions and powerful actions it can perform warrant a 'suspicious' classification due to the potential for misuse if the agent itself were compromised.
Capability Assessment
Purpose & Capability
Name, SKILL.md examples and the included __init__.py implement Exchange 2010 EWS operations (email, calendar, contacts, tasks) — the requested capabilities match the code's purpose. However the skill's package metadata lists no required env vars while the code expects credentials, indicating a documentation/metadata mismatch.
Instruction Scope
SKILL.md instructs placing Exchange credentials in a .env.credentials file. The code will read a .env.credentials file located two directories above the module and set every KEY=VALUE it finds into os.environ (no filtering). That means the skill will import any keys present in that file (not only Exchange-related keys). Also SKILL.md references EXCHANGE_PASSWORD but the code reads PICARD_PASSWORD (and raises an error mentioning EXCHANGE_PASSWORD), creating confusion and potential runtime errors.
Install Mechanism
No install script or remote downloads are present. The skill is instruction/code-only and does not fetch remote artifacts during install.
Credentials
Registry metadata declares no required env vars but runtime requires credentials. The code expects PICARD_USERNAME / PICARD_PASSWORD and uses EXCHANGE_* fallbacks inconsistently. The practice of loading an arbitrary .env.credentials into os.environ (all keys) is disproportionate because it can import unrelated secrets into the process unexpectedly.
Persistence & Privilege
The skill does not request always:true, does not modify other skills, and has no install-time persistence mechanisms. It will run with normal autonomous invocation defaults.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install exchange2010
  3. After installation, invoke the skill by name or use /exchange2010
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of Exchange 2010 EWS integration. - Read, send, search, and manage email—including attachments and folder browsing - View, create, update, delete, and search calendar events; supports recurring events and shared calendars - Access and search contacts, resolve names in the Global Address List - Manage tasks: create, complete, and delete - Read and set out-of-office/automatic replies - Fast EWS filters for efficient searches - Examples and API reference provided for all features
v1.3.0
Exchange 2010 EWS integration
Metadata
Slug exchange2010
Version 1.0.0
License
All-time Installs 2
Active Installs 2
Total Versions 2
Frequently Asked Questions

What is Exchange2010?

Connect to Exchange 2010 to manage emails, calendar events, contacts, tasks, attachments, shared calendars, recurring events, and out-of-office settings. It is an AI Agent Skill for Claude Code / OpenClaw, with 1302 downloads so far.

How do I install Exchange2010?

Run "/install exchange2010" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Exchange2010 free?

Yes, Exchange2010 is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Exchange2010 support?

Exchange2010 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Exchange2010?

It is built and maintained by pes0 (@pes0); the current version is v1.0.0.

💬 Comments