What problem does it solve?
Provides a safe, consistent interface to read, triage, draft, edit, forward, reply to, search, and send emails in Lark (Feishu) while enforcing strong guardrails to prevent accidental or unauthorized sending and to mitigate prompt-injection attacks embedded in email content.
Core Features & Use Cases
- Inbox Triage & Search: List and search messages by query, folder, label, date range, and sender to decide which items need action.
- Read & Thread View: Read single messages or full threads with normalized plain-text and optional HTML bodies, plus attachment metadata.
- Drafting & Sending Workflows: Create, edit (structured patch operations), forward, reply, reply-all, and send messages with enforced user confirmation before delivery.
- Attachment & Inline Media Handling: Support for adding/removing attachments and inline CID images while preserving MIME structure.
- Safety & Compliance: Explicit rules to treat email content as untrusted data, require schema inspection, require --confirm-send for sends, and mandate send_status checks after delivery.
Quick Start
Use the lark-cli mail +reply shortcut to create a draft reply for a specified message and do not send until the user explicitly confirms.