Skip to main content

Jmap

@josephholsten/jmapv2026.06.13.3· 1mo agoMODELS
01README

JMAP model for email triage — search, refile, mark, frequency analysis, attachment download

02Models1
@josephholsten/jmapv2026.06.13.3jmap.ts
fn mailbox_get()
List all JMAP mailboxes with name, role, and message counts (Mailbox/get).
fn email_query()
Search emails by mailbox, sender, subject, or date range; paginates internally and returns headers (Email/query + Email/get).
fn email_get()
Fetch full headers and body for a list of message IDs (Email/get).
fn email_frequency()
Query a mailbox and return a ranked sender frequency list (Email/query + Email/get + reduce).
fn mailbox_move()
Move mailboxes to a new parent (Mailbox/set update on parentId). Pass parentId: null to promote to top level.
fn session_get()
Fetch JMAP session info: username, server capabilities, accounts, and primary account routing (RFC 8620 §2).
fn email_refile()
Set mailboxIds on messages; pass one ID to move, multiple to assign labels (Email/set update).
fn email_rm()
Delete messages by ID (Email/set destroy).
fn email_attachment_get()
Download attachments from messages by ID and save them to a local directory (Email/get + blob download, RFC 8620 §5.4).
fn email_mark()
Set or clear JMAP keywords (flags) on messages (Email/set update).

Resources

mailboxes(1d)— All JMAP mailboxes with message counts
messages(30d)— Email headers from the most recent email_query
message_bodies(30d)— Full email content from the most recent email_get
sender_frequency(30d)— Ranked sender frequency from the most recent email_frequency
mutation_result(30d)— Result of the most recent email_refile or email_mark
destroy_result(30d)— Result of the most recent email_rm
session_info(1d)— JMAP session: username, server capabilities, accounts, and primary account routing
attachment_result(30d)— Attachments saved by the most recent email_attachment_get
03Previous Versions5
2026.06.13.2

Modified 1 models

2026.06.11.3

Modified 1 models

2026.06.11.2
2026.06.11.1
2026.06.10.1
04Stats
A
100 / 100
Downloads
0
Archive size
118.3 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
05Platforms
06Labels