Repository navigation
v0.2.0
What's New
Draft Commands (Safe for AI Agents)
email.draft- Create new draft emails without sendingemail.draft-reply- Create draft replies to existing emails with auto-threading
Features
- Auto-sets
In-Reply-ToandReferencesheaders for proper threading - Auto-prefixes
Re:to subject when replying --reply-allflag to include all original recipients--fromflag to specify sender identity--toand--subjectoverrides
Safety Model
Drafts are created using Email/set only - never EmailSubmission/set. Even with a write-enabled token, the CLI cannot send emails. Humans review drafts in Fastmail UI before sending.
Other Changes
- Renamed
FASTMAIL_READONLY_API_TOKEN→FASTMAIL_API_TOKEN(backwards compatible) - Fixed
@file/@-body input to read plain text (not JSON) - CLI help now shows
fastmail-cliinstead ofjmapc-cli
Example Usage
# Create a draft reply
fastmail-cli email.draft-reply \
--id "M12345" \
--body "Thanks for reaching out..." \
--from "joseph@noc0.dev"
# Create a new draft
fastmail-cli email.draft \
--to "recipient@example.com" \
--subject "Hello" \
--body @message.txtFull Changelog: v0.1.1...v0.2.0