Back to skills
SKILL.md
Fastmail
ASecurityManages Fastmail email and calendar via JMAP and CalDAV APIs. Use for emails (read, send, reply, search, organize, bulk operations, threads) or calendar (events, reminders, RSVP invitations). Timezone auto-detected from system.
- 14 stars
- 0 votes
- 0 copies
- 0 views
- Added September 7, 2026
Works with
Security analysis
100/100Pro scans all 11 files and shows the line behind each finding
npx -y skills add modbender/skill-library-mcp --skill fastmail --agent claude-codeAre you the author of Fastmail?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/modbender-fastmail)---
name: fastmail
description: Manages Fastmail email and calendar via JMAP and CalDAV APIs. Use for emails (read, send, reply, search, organize, bulk operations, threads) or calendar (events, reminders, RSVP invitations). Timezone auto-detected from system.
compatibility: opencode
metadata:
author: witooh
version: "2.1"
api: JMAP, CalDAV
---
## Quick Start
Invoke tools via CLI:
```bash
# Install dependencies first
cd .opencode/skills/fastmail && bun install
# Email: List mailboxes
bunx fastmail list_mailboxes
# Email: Send
bunx fastmail send_email \
'{"to": [{"email": "user@example.com"}], "subject": "Hi", "text_body": "Message"}'
# Calendar: List events
bunx fastmail list_events \
'{"start_date": "2024-01-01", "end_date": "2024-01-31"}'
# Calendar: Create event with reminder
bunx fastmail create_event_with_reminder \
'{"title": "Meeting", "start": "2024-01-15T10:00:00", "end": "2024-01-15T11:00:00", "reminder_minutes": [15, 60]}'
# List all available tools
bunx fastmail --list
```
## When to Use This Skill
- π§ Check inbox or search emails
- π§ Send, reply, or move emails
- π·οΈ Apply labels or organize mailbox
- π
View calendar or events
- π
Create, update, or delete events
- π Set event reminders or alarms
## Email Tools (10 total)
| Tool | Purpose |
|------|---------|
| `list_mailboxes` | List all folders |
| `list_emails` | List emails in mailbox |
| `get_email` | Get full email content |
| `get_thread` | Get all emails in a conversation thread |
| `search_emails` | Search by text query |
| `send_email` | Send new email |
| `reply_email` | Reply to email |
| `move_email` | Move to folder |
| `set_labels` | Apply labels ($seen, $flagged) |
| `delete_email` | Delete (move to trash) |
## Bulk Email Tools (3 total)
| Tool | Purpose |
|------|---------|
| `bulk_move_emails` | Move multiple emails at once |
| `bulk_set_labels` | Apply labels to multiple emails |
| `bulk_delete_emails` | Delete multiple emails at once |
## Calendar Tools (10 total)
| Tool | Purpose |
|------|---------|
| `list_calendars` | List all calendars |
| `list_events` | List events by date range |
| `get_event` | Get event details |
| `create_event` | Create new event |
| `update_event` | Update existing event |
| `delete_event` | Delete event |
| `search_events` | Search by title/description |
| `create_recurring_event` | Create repeating event |
| `list_invitations` | List calendar invitations |
| `respond_to_invitation` | Accept/decline/maybe invitations |
## Reminder Tools (4 total)
| Tool | Purpose |
|------|---------|
| `add_event_reminder` | Add reminder to event |
| `remove_event_reminder` | Remove reminder(s) |
| `list_event_reminders` | List reminders for event |
| `create_event_with_reminder` | Create event + reminder in one call |
## Common Examples
```bash
# Check inbox (limit 10)
bunx fastmail list_emails '{"limit": 10}'
# Search for emails
bunx fastmail search_emails '{"query": "invoice"}'
# Get specific email content
bunx fastmail get_email '{"email_id": "xxx"}'
# Get email thread/conversation
bunx fastmail get_thread '{"email_id": "xxx"}'
# Bulk operations
bunx fastmail bulk_move_emails '{"email_ids": ["id1", "id2"], "target_mailbox_id": "archive"}'
bunx fastmail bulk_delete_emails '{"email_ids": ["id1", "id2", "id3"]}'
# Create recurring event (daily for 10 days)
bunx fastmail create_recurring_event \
'{"title": "Standup", "start": "2024-01-01T09:00:00", "end": "2024-01-01T09:30:00", "recurrence": "daily", "recurrence_count": 10}'
# Calendar invitations
bunx fastmail list_invitations
bunx fastmail respond_to_invitation '{"event_id": "xxx", "response": "accept"}'
```
## Decision Tree
**Need to manage email?**
- List/search β `list_emails` or `search_emails`
- Read content β `get_email`
- View conversation β `get_thread`
- Send/reply β `send_email` or `reply_email`
- Organize β `move_email`, `set_labels`, `delete_email`
- Bulk actions β `bulk_move_emails`, `bulk_set_labels`, `bulk_delete_emails`
**Need to manage calendar?**
- View β `list_calendars` or `list_events`
- Create β `create_event` or `create_recurring_event`
- Modify β `update_event`
- Delete β `delete_event`
- Invitations β `list_invitations`, `respond_to_invitation`
**Need reminders?**
- Add to existing event β `add_event_reminder`
- Create event + reminder β `create_event_with_reminder` (faster)
- Manage β `list_event_reminders`, `remove_event_reminder`
## Output Format
All tools return JSON:
```json
{
"success": true,
"data": { /* tool-specific response */ },
"timestamp": "2024-01-15T10:00:00+07:00"
}
```
## Environment Variables
| Variable | Purpose | Required |
|----------|---------|----------|
| `FASTMAIL_API_TOKEN` | Email via JMAP | Yes (for email) |
| `FASTMAIL_USERNAME` | Calendar via CalDAV | Yes (for calendar) |
| `FASTMAIL_PASSWORD` | Calendar app password | Yes (for calendar) |
| `FASTMAIL_TIMEZONE` | Calendar timezone (IANA format) | No (auto-detected) |
**Setup:**
```bash
export FASTMAIL_API_TOKEN="your-api-token"
export FASTMAIL_USERNAME="your-email@fastmail.com"
export FASTMAIL_PASSWORD="your-app-password"
# Optional: Override timezone (defaults to system local timezone)
export FASTMAIL_TIMEZONE="America/New_York" # or "Asia/Bangkok", "Europe/London", etc.
```
## Timezone Support
β° **Configurable calendar timezone**
- **Default:** Auto-detects your system's local timezone
- **Override:** Set `FASTMAIL_TIMEZONE` environment variable
- Uses IANA timezone identifiers (e.g., `America/New_York`, `Asia/Bangkok`, `Europe/London`)
- Input times assumed in configured timezone
- Output times shown in configured timezone
- Stored internally as UTC
- Handles Daylight Saving Time (DST) automatically
## See Also
- **Detailed reference:** `.opencode/skills/fastmail/references/TOOLS.md`
- **Full guide:** `.opencode/skills/fastmail/README.md`
- **Setup help:** Fastmail Settings β Privacy & Security β Integrations
Files in this skill
- README.md
- SKILL.md
- package.json
- references/TOOLS.md
- scripts/caldav-client.ts
- scripts/cli.ts
- scripts/errors.ts
- scripts/jmap-client.ts
- scripts/tools/calendar.ts
- scripts/tools/email.ts
- tsconfig.json
Attribution
Comments
Loading commentsβ¦