Quick Start
Invoke tools via CLI:
# 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
# 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:
{
"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:
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
1---
2name: fastmail
3description: 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.
4compatibility: opencode
5metadata:
6 source: https://skillmd.com/skills/modbender/fastmail
7 author: witooh
8 version: "2.1"
9 api: JMAP, CalDAV
10---
11
12## Quick Start
13
14Invoke tools via CLI:
15
16```bash
17# Install dependencies first
18cd .opencode/skills/fastmail && bun install
19
20# Email: List mailboxes
21bunx fastmail list_mailboxes
22
23# Email: Send
24bunx fastmail send_email \
25 '{"to": [{"email": "user@example.com"}], "subject": "Hi", "text_body": "Message"}'
26
27# Calendar: List events
28bunx fastmail list_events \
29 '{"start_date": "2024-01-01", "end_date": "2024-01-31"}'
30
31# Calendar: Create event with reminder
32bunx fastmail create_event_with_reminder \
33 '{"title": "Meeting", "start": "2024-01-15T10:00:00", "end": "2024-01-15T11:00:00", "reminder_minutes": [15, 60]}'
34
35# List all available tools
36bunx fastmail --list
37```
38
39## When to Use This Skill
40
41- 📧 Check inbox or search emails
42- 📧 Send, reply, or move emails
43- 🏷️ Apply labels or organize mailbox
44- 📅 View calendar or events
45- 📅 Create, update, or delete events
46- 🔔 Set event reminders or alarms
47
48## Email Tools (10 total)
49
50| Tool | Purpose |
51|------|---------|
52| `list_mailboxes` | List all folders |
53| `list_emails` | List emails in mailbox |
54| `get_email` | Get full email content |
55| `get_thread` | Get all emails in a conversation thread |
56| `search_emails` | Search by text query |
57| `send_email` | Send new email |
58| `reply_email` | Reply to email |
59| `move_email` | Move to folder |
60| `set_labels` | Apply labels ($seen, $flagged) |
61| `delete_email` | Delete (move to trash) |
62
63## Bulk Email Tools (3 total)
64
65| Tool | Purpose |
66|------|---------|
67| `bulk_move_emails` | Move multiple emails at once |
68| `bulk_set_labels` | Apply labels to multiple emails |
69| `bulk_delete_emails` | Delete multiple emails at once |
70
71## Calendar Tools (10 total)
72
73| Tool | Purpose |
74|------|---------|
75| `list_calendars` | List all calendars |
76| `list_events` | List events by date range |
77| `get_event` | Get event details |
78| `create_event` | Create new event |
79| `update_event` | Update existing event |
80| `delete_event` | Delete event |
81| `search_events` | Search by title/description |
82| `create_recurring_event` | Create repeating event |
83| `list_invitations` | List calendar invitations |
84| `respond_to_invitation` | Accept/decline/maybe invitations |
85
86## Reminder Tools (4 total)
87
88| Tool | Purpose |
89|------|---------|
90| `add_event_reminder` | Add reminder to event |
91| `remove_event_reminder` | Remove reminder(s) |
92| `list_event_reminders` | List reminders for event |
93| `create_event_with_reminder` | Create event + reminder in one call |
94
95## Common Examples
96
97```bash
98# Check inbox (limit 10)
99bunx fastmail list_emails '{"limit": 10}'
100
101# Search for emails
102bunx fastmail search_emails '{"query": "invoice"}'
103
104# Get specific email content
105bunx fastmail get_email '{"email_id": "xxx"}'
106
107# Get email thread/conversation
108bunx fastmail get_thread '{"email_id": "xxx"}'
109
110# Bulk operations
111bunx fastmail bulk_move_emails '{"email_ids": ["id1", "id2"], "target_mailbox_id": "archive"}'
112bunx fastmail bulk_delete_emails '{"email_ids": ["id1", "id2", "id3"]}'
113
114# Create recurring event (daily for 10 days)
115bunx fastmail create_recurring_event \
116 '{"title": "Standup", "start": "2024-01-01T09:00:00", "end": "2024-01-01T09:30:00", "recurrence": "daily", "recurrence_count": 10}'
117
118# Calendar invitations
119bunx fastmail list_invitations
120bunx fastmail respond_to_invitation '{"event_id": "xxx", "response": "accept"}'
121```
122
123## Decision Tree
124
125**Need to manage email?**
126- List/search → `list_emails` or `search_emails`
127- Read content → `get_email`
128- View conversation → `get_thread`
129- Send/reply → `send_email` or `reply_email`
130- Organize → `move_email`, `set_labels`, `delete_email`
131- Bulk actions → `bulk_move_emails`, `bulk_set_labels`, `bulk_delete_emails`
132
133**Need to manage calendar?**
134- View → `list_calendars` or `list_events`
135- Create → `create_event` or `create_recurring_event`
136- Modify → `update_event`
137- Delete → `delete_event`
138- Invitations → `list_invitations`, `respond_to_invitation`
139
140**Need reminders?**
141- Add to existing event → `add_event_reminder`
142- Create event + reminder → `create_event_with_reminder` (faster)
143- Manage → `list_event_reminders`, `remove_event_reminder`
144
145## Output Format
146
147All tools return JSON:
148
149```json
150{
151 "success": true,
152 "data": { /* tool-specific response */ },
153 "timestamp": "2024-01-15T10:00:00+07:00"
154}
155```
156
157## Environment Variables
158
159| Variable | Purpose | Required |
160|----------|---------|----------|
161| `FASTMAIL_API_TOKEN` | Email via JMAP | Yes (for email) |
162| `FASTMAIL_USERNAME` | Calendar via CalDAV | Yes (for calendar) |
163| `FASTMAIL_PASSWORD` | Calendar app password | Yes (for calendar) |
164| `FASTMAIL_TIMEZONE` | Calendar timezone (IANA format) | No (auto-detected) |
165
166**Setup:**
167```bash
168export FASTMAIL_API_TOKEN="your-api-token"
169export FASTMAIL_USERNAME="your-email@fastmail.com"
170export FASTMAIL_PASSWORD="your-app-password"
171# Optional: Override timezone (defaults to system local timezone)
172export FASTMAIL_TIMEZONE="America/New_York" # or "Asia/Bangkok", "Europe/London", etc.
173```
174
175## Timezone Support
176
177⏰ **Configurable calendar timezone**
178- **Default:** Auto-detects your system's local timezone
179- **Override:** Set `FASTMAIL_TIMEZONE` environment variable
180- Uses IANA timezone identifiers (e.g., `America/New_York`, `Asia/Bangkok`, `Europe/London`)
181- Input times assumed in configured timezone
182- Output times shown in configured timezone
183- Stored internally as UTC
184- Handles Daylight Saving Time (DST) automatically
185
186## See Also
187
188- **Detailed reference:** `.opencode/skills/fastmail/references/TOOLS.md`
189- **Full guide:** `.opencode/skills/fastmail/README.md`
190- **Setup help:** Fastmail Settings → Privacy & Security → Integrations