• v0.10.0 578c1812c6

    svc-agent-writer released this 2026-11-02 00:02:08 +00:00 | 87 commits to main since this release

    Rename the repository and distribution to mail-mind-mcp, and Python imports to mail_mind_mcp. No old-module alias is shipped. CLI mailmind, environment variables, tool contracts, panel URI, endpoints and data paths retain their names. Default config discovery prefers the new directory and falls back only when it is absent.

    Includes 0.9.0's indexed embedding scans and WAL handling. Schema remains v11; upgrades from 0.8.0 (v10) need a consistent backup, and rollback restores that backup with the old image. No optional features are enabled automatically.

    Validation: 805 unit tests, 18 IMAP/JMAP integration tests, lint/types/audit, clean-wheel cross-service evidence test and amd64 container smoke test.

    Container: git.groupthink.asia/dev/mail-mind-mcp:0.10.0@sha256:6209a8466699c8dc6f7afc84ad4feee749b24b03ba1cfa571969319665d5dcae (linux/amd64).

    Downloads
  • v0.8.1 70397c415c

    0.8.1 Stable

    svc-agent-writer released this 2026-11-01 21:12:32 +00:00 | 101 commits to main since this release

    No known key found for this signature in database

    Semantic search, hybrid search and similar_to stay fast with an account filter (#102).

    Image: git.groupthink.asia/dev/imap-mailmind-mcp:0.8.1@sha256:0f454874b77e20786ba98e5cd920ed1814021e2824a8916da237efed8b8d584b (linux/amd64, config sha256:4cc5ee46fc49…).

    Fixed

    • Vector scans with account (#102, #107). With account set, SQLite drove both vector scans from an account index instead of their keyset range. Each page of 2048 rows then re-read and re-sorted the whole account. The scans now keep their keyset range. In the image, on 210,000 synthetic messages with vectors, a scan with account fell from about 20.8 s to about 1.0 s, the cost of an unfiltered scan. Results do not change.
    • scripts/bench_search.py --semantic times the vector scans against a plain keyset scan.

    Upgrade

    • No schema change and no config change.
    • A rollback to 0.8.0 needs nothing.
    Downloads
  • v0.8.0 170127cb92

    0.8.0 Stable

    svc-agent-writer released this 2026-11-01 12:29:10 +00:00 | 106 commits to main since this release

    No known key found for this signature in database

    Attachment text in semantic and hybrid search, attachment flags for search and wakes, and a copy collapse that no longer makes large searches slow (#79, #87, #96).

    Image: git.groupthink.asia/dev/imap-mailmind-mcp:0.8.0@sha256:ccb81a053f97e0abd7cf5265500e388a79e5b0f4203c543e71864730ef25a982 (linux/amd64, config sha256:53eb630fa04d…).

    Added

    • Attachment text in semantic search (#79, #99). Needs both [embed] and [attachments]. Nothing leaves the host.
      • The embedder cuts each attachment's text into chunks of 512 tokens with the pinned tokenizer, from the start, at most [attachments] embed_chunks (default 4, at most 16). Each chunk carries the file name. New messages are embedded before attachment chunks.
      • Semantic and hybrid modes score a message by its best vector: the message vector or any chunk vector. When a chunk wins, the snippet line starts with [attachment N].
      • similar_to compares against every vector.
      • mail_status shows attachment_chunks=N.
    • Attachment flags (#87, #100). Local rules over stored attachment text mark a message invoice, deadline, contract or form. The flags are advisory.
      • mail_search takes an attachment_flag filter.
      • [wake] attachment_boost (0..1, default 0) adds to the wake score of a message flagged invoice or deadline. The per-thread and daily caps still apply.
      • mailmind replay adds per-flag columns and boosted, the wakes that reach the threshold only through the boost. --attachment-boost tries another value.
      • The Jev payload does not change. No attachment text goes to Jev.
    • Triage confidence. mail_read shows triage: <class> (<confidence>) wake=<score> when Jev supplied a confidence.

    Changed

    • Re-extraction. The backlog records a content hash and an extractor string (parser version and max_chars) for each attachment. It reuses a matching hash. A change of the extractor string extracts the attachment again. Rows extracted before 0.8.0 have no extractor string and stay as they are.
    • Search cost (#96, #103). The copy collapse now uses a stored key and an index. In the image, on 210,000 synthetic rows, an unfiltered search fell from about 1.4 s in 0.7.0 to about 0.5 s. Against 0.6.0, with no collapse, the ratios of medians are 1.00 unfiltered, 0.69 with account, and 1.36 with sender. Output does not change.

    Known issues

    • Semantic search, hybrid search and similar_to with an account filter can take seconds on a large mirror: about 17 s on 210,000 synthetic vectors. #102 tracks it.

    Upgrade

    • The sync worker moves the store from schema v7 to v10 on its first start. The api container waits for v10, as before.
      • The first start builds the copy-key index once: seconds per hundred thousand messages.
      • With [embed] and [attachments] both set, the embedder then works through a backlog of attachment chunks on one core. Watch the sync container's memory against its limit while it runs.
    • Config: two new optional keys, [attachments] embed_chunks and [wake] attachment_boost. No key is required.
    • Rollback: no process lowers the stored version. The 0.7.0 image opens a v10 store as writer and as reader, so a rollback needs nothing.
    Downloads
  • v0.7.0 6e638b31b5

    0.7.0 Stable

    svc-agent-writer released this 2026-11-01 08:41:14 +00:00 | 118 commits to main since this release

    No known key found for this signature in database

    One search row per message across accounts, mail_attachment, results copied across accounts, and a health probe that no long read can hold (#59, #74, #86, #90).

    Image: git.groupthink.asia/dev/imap-mailmind-mcp:0.7.0@sha256:03a0d09413bca741e6df2edf9f19582cc5b36cfe71df768d09cb20a4ca8598f9 (linux/amd64, config sha256:1bd005f589c4…).

    Added

    • mail_attachment (#74, #93). Read scope. It returns the text of one attachment by its part number from mail_read, with file, type, size and status, bounded by max_chars and wrapped as untrusted data.
      • With [attachments] absent, it answers unsupported.
      • An unknown part, or a part with no text, answers not_found with its status.
    • Copies collapse (#59, #92). One message held as several rows, in two accounts or in two mailboxes of one IMAP account, is matched by its Message-ID, From and Date, all present and all equal.
      • mail_search shows it once, in every mode. Its snippet line ends with copies=N, and total counts messages. The row shown is the copy in an inbox, else the lowest row id, among the rows that pass the filters.
      • similar_to leaves out every copy of its source.
      • mail_people, mail_evidence and mail_triage count a message once.
      • mail_thread joins the thread in another account through a copy of a member. Each row then ends with its account. References alone never join two accounts.
    • Results copied across accounts (#86, #94). The triage class and score, the vector and the attachment text are copied by the same key, from any account of the instance. A forwarded or Cc'd copy costs no Jev call and no model run. ADRs 0003, 0005, 0006 and 0007 are amended to match.

    Changed

    • mail_read numbers its attachment list. Each line reads N file type size status. The status is the stored one from ADR 0007 §4, pending before the backlog reaches the part, or off without [attachments]. An agent prompt that parsed the old name (type, size) form needs a change.
    • mail_search output has one row per message, as above. A store without copies gives the same output as 0.6.0.
    • /healthz and /healthz/sync (#90, #95) read only the last successful sync per account. The read uses its own short read-only connection, takes no store lock, and runs in a worker thread. The probe answered in 0.79 ms median on 200,000 synthetic messages. The response bodies do not change.

    Known cost

    • A search with many hits costs about 4.5 times more than in 0.6.0: 164 ms to 742 ms for an unfiltered search on 210,000 synthetic rows. A search with few hits costs the same. #96 tracks it.

    Upgrade

    • No schema version change. The sync worker adds one index, messages_copies, on its next start. An older binary ignores it, so a rollback needs nothing.
    • No config change.
    • An instance that moved to TCP probes because of the /healthz timeouts can go back to the HTTP probes in the base. Check first, in the pod, that /healthz answers in under 0.1 s.
    Downloads
  • v0.6.0 3af5d340ef

    0.6.0 Stable

    svc-agent-writer released this 2026-11-01 05:32:47 +00:00 | 130 commits to main since this release

    No known key found for this signature in database

    Attachment text in keyword search, an evidence token for a people-graph service, and a read-only triage panel (ADR 0007, ADR 0008, #76).

    Image: git.groupthink.asia/dev/imap-mailmind-mcp:0.6.0@sha256:06b17ff662d24b768d489434be9cb220fb78c50bfe6691dc5f96f12eabb94759 (linux/amd64, config sha256:479ca836dbf7…).

    Added

    • Attachment text (ADR 0007, #82, #83). Optional, on only with [attachments]. Nothing leaves the host.
      • The sync worker extracts the text of each attachment after every pass, newest mail first. It stores the text, never the bytes. Keyword search in mail_search then matches a word found only in an attachment.
      • Formats are a closed list: PDF, DOCX, PPTX, XLSX, Outlook .msg, HTML, and plain text, CSV, Markdown and calendar files. Every other type is unsupported.
      • Each parse runs in a child process with no sockets, 512 MiB of address space, 10 s of CPU (30 s for DOCX, PPTX, Outlook and HTML), and a zip-member check before any Office parser.
      • Each attachment gets one final status: text, empty, unsupported, too_large, skipped, failed or timeout.
      • mail_status shows attachments=N attachment_backlog=M per account.
      • The README "Attachment size" section lists every limit and the memory measured per attachment shape.
    • Evidence token and mail_evidence (ADR 0008, #84). Scopes now nest: evidence is in read, and read is in write.
      • An evidence token reaches mail_evidence, mail_people, mail_status and mail_changes only, never a body.
      • mail_evidence returns a closed field list for one sender: domain, received, roles, sent, the distinct sign-off blocks of the newest messages with every address redacted, and subjects.
      • A sign-off block starts only at a closing phrase from a closed list or at a line that starts with the sender's name. Lines above it are never returned.
      • mail_changes envelope=true adds from | to | cc to each add row, addresses only.
    • Triage panel (#76, #88). Read-only, for hosts that render MCP Apps. In the #75 probe, grok.com rendered an MCP Apps panel and Grok Bot showed only text. This panel is not yet checked on grok.com.
      • mail_triage returns inbox counts by triage class and links the panel at ui://mailmind/triage.html.
      • The panel reads rows through mail_triage_rows, an app-only tool, and opens a message through mail_read. It starts no write and loads nothing from outside.
      • mail_triage and mail_triage_rows take the read scope. The evidence token reaches neither.

    Changed

    • Schema v7. The search index gains an attached_text column, and a new attachment_text table holds one row per attachment.
    • The image is about 83 MB larger, for the extractors. Pillow and lxml are a layer of their own, so no single layer exceeds the registry's 100 MB request limit.
    • ADR 0007 is accepted and amends ADR 0001 §4 and ADR 0005 §3. ADR 0008 is accepted.

    Upgrade

    • Back up the store first. On its first start, the sync worker migrates to schema v7 and rebuilds the search index once. That takes seconds per hundred thousand messages. The api waits for v7 meanwhile.
    • With no config change, 0.6.0 behaves like 0.5.1 for reads and writes, and adds mail_triage and mail_triage_rows to the read tools.
    • A rollback to 0.5.1 should open a v7 store, because its DDL is all IF NOT EXISTS. That reading comes from the code and is not tested.
    • To enable attachment text: add [attachments] to the config. See config.example.toml.
      • A child can use up to 512 MiB in the sync container, one at a time. The base sync memory limit of 768Mi does not count it. Raise the limit in the overlay when [attachments] is set, more so when [embed] is set too.
    • To issue an evidence token: run mailmind token --out evidence.token, add it to the Secret as evidence.token, and set evidence_token_file. A Secret key that ends in .token reaches the api container only. Issue it only to a consumer such as peoplemind-mcp.
    Downloads
  • v0.5.1 acec37c122

    0.5.1 Stable

    svc-agent-writer released this 2026-11-01 00:37:16 +00:00 | 151 commits to main since this release

    No known key found for this signature in database

    JMAP writes and iOS flag colours (ADR 0006 §10, ADR 0004 as amended).

    Image: git.groupthink.asia/dev/imap-mailmind-mcp:0.5.1@sha256:f9ad108e59199f2d1d0ea06bbfbba67f69bb984eaf41e76dda489b07d193498f (linux/amd64, config sha256:1e3c5cf81ef5…).

    Added

    • JMAP writes (#57). A JMAP account now applies the outbox actions, under every rule of ADR 0004:
      • A draft is uploaded and created with Email/import in Drafts, with $draft and $seen. It is never sent. Drafts need from_address on the account.
      • A flag change and a move are Email/set patches with ifInState. A change made on the server meanwhile fails the action with conflict, and nothing is overwritten. The client can ask again.
      • A move keeps the message id. A message that was already in the target folder (a Fastmail label) stays there on undo.
      • An undo replays the stored inverse. A draft is destroyed only while it keeps $draft and its blob id.
      • A read-only token refuses every write with unsupported. EmailSubmission is never called.
    • iOS flag colours (#68). mail_flag takes color: red, orange, yellow, green, blue, purple or grey.
      • A colour sets \Flagged and Apple's $MailFlagBit keywords, as iOS Mail stores them. Clearing \Flagged clears the colour.
      • A colour never marks a message read. Marking read stays an explicit add=["seen"].
      • Rows show !(blue) for a colour other than red. mail_search gains a flag_color filter.
      • On IMAP, a mailbox that keeps no keywords refuses a colour with unsupported.

    Changed

    • An undo of a flag change restores only the flags that the action changed. A flag that the owner changed since then stays as the owner set it. An action applied before 0.5.1 restores both flags, as before.
    • ADR 0004 §1 and §3 are amended for the colour keywords and the exact undo.

    Upgrade

    • With no config change, 0.5.1 behaves like 0.5.0 for reads. No schema change.
    • An instance writes only when its config has write_token_file (ADR 0004 §9).
    • A writing JMAP account needs a read-write Fastmail token with Email access and without the submission scope, and from_address for drafts.
    Downloads
  • v0.5.0 b24396ce5b

    0.5.0 Stable

    svc-agent-writer released this 2026-10-31 23:57:26 +00:00 | 157 commits to main since this release

    No known key found for this signature in database

    Pluggable mail sources, starting with JMAP and push (ADR 0006).

    Image: git.groupthink.asia/dev/imap-mailmind-mcp:0.5.0@sha256:44b74f8d2dd53e767c6fbbccb73f22fd6c0e9ebe139f1d1b6ef7833fe8f9869e (linux/amd64, config sha256:e5fb5e5b4de1…).

    Added

    • A JMAP source (#55). An account with source = "jmap" syncs over JMAP (RFC 8620, RFC 8621) beside the IMAP accounts. It is read-only: a write to a JMAP account fails with unsupported until #57 lands.
      • Each pass reads every mailbox, backfills newest first, and then reads deltas with Email/changes.
      • A message keeps its id when it moves between mailboxes, and the change feed reports a move.
      • The token is a file. Its name must not end in .token.
      • Switching an account from IMAP to JMAP keeps the triage classes and vectors.
    • JMAP push (#56). An EventSource stream wakes the sync seconds after mail arrives in any mailbox. sync.idle = false turns it off. The poll interval stays as the fallback.
    • A Stalwart integration target (#63). make test-stalwart tests the JMAP source against a real server.

    Changed

    • Schema v5 and v6 (#62, #55). v5 adds source ids, the list of mailboxes per message, versioned ids and the move change. v6 adds per-account source state. The sync worker upgrades the store on start.
    • Ids. The ids that 0.4.0 issued still resolve.
    • The IMAP source sits behind a MailSource seam (#61). IMAP behaviour does not change.

    Upgrade

    • With no config change, 0.5.0 behaves like 0.4.0.
    • To add a JMAP account, add an [[accounts]] block with source = "jmap", session_url and credential_file. See config.example.toml.

    Decisions

    • ADR 0006: pluggable mail sources, and JMAP with push (#60).
    Downloads
  • v0.4.0 080a433665

    0.4.0 Stable

    svc-agent-writer released this 2026-10-31 13:41:47 +00:00 | 173 commits to main since this release

    No known key found for this signature in database

    Local semantic search (ADR 0005). Nothing leaves the host.

    Image: git.groupthink.asia/dev/imap-mailmind-mcp:0.4.0@sha256:eae961e902a66a151fd02ece76b047814008b466525402d8d21854eddba61eb7 (linux/amd64, config sha256:f4c26c3de67c…).

    Added

    • Semantic search (#44, #48), when [embed] is set. mail_search gains:

      • mode="semantic": a plain-language query, ranked by meaning;
      • mode="hybrid": the keyword and semantic rankings, fused;
      • similar_to=<id>: mail like that message.

      Every filter applies in every mode. The api loads the model on the first semantic call and embeds the query in memory. It never stores or logs the query.

    • The embedder (#43, #46). An embed thread in sync stores one bge-small-en-v1.5 int8 vector per message, 1.5 KB each. It works newest first on one core, and it resumes a backfill. A moved copy reuses the vector of its Message-ID.

      The image carries the model, pinned by Hugging Face revision and sha256 and checked at build. Nothing downloads at run time. mail_status and mailmind check report the embedder.

    • aliases on an account (#41): other addresses the owner writes from. mail_people leaves them out.

    Changed

    • New mail nudges the assessor and the embedder (#47). Triage, wakes and vectors now start seconds after a sync pass adds mail, not at the next 60-second poll. poll_seconds stays as the fallback.
    • Schema v4 adds the embeddings table. The sync worker upgrades the store on start.
    • Memory limits. The base sync and api limits rise from 512Mi to 768Mi.
    • Image size. The image grows from 264 MB to 477 MB. onnxruntime and numpy ship as layers of their own, so every layer stays under the registry proxy's 100 MB request limit (#50).

    Upgrade

    • With no config change, 0.4.0 behaves like 0.3.0 plus the nudge. [embed] is off by default.
    • To turn on semantic search, add an empty [embed] section. The defaults use the model in the image.
    • To exclude other addresses from mail_people, add aliases = [...] to the account.

    Decisions

    • ADR 0005: local embeddings for semantic search (#45).
    • ADR 0003 §6 is amended: an off-host embedding provider needs its own amendment and owner consent.
    Downloads
  • v0.3.0 33b067f236

    svc-agent-writer released this 2026-10-31 12:24:54 +00:00 | 188 commits to main since this release

    No known key found for this signature in database

    Phase 3 (epic #8): optional Jev triage and pulled wakes (ADR 0003).

    Image: git.groupthink.asia/dev/imap-mailmind-mcp:0.3.0@sha256:e6430c2dd0f314696b03a89b920ac0a9fffa6cf364f5b31c9eba852543ea2f14 (linux/amd64).

    Changes

    • [assess] sends a closed field list for recent inbox mail to TypeSafe Jev and stores a triage class and a wake score. The default headers mode sends no body text. The assessor runs as a thread in the sync process, and the key reaches sync only (#36).
    • mail_search gains a triage filter. Rows and mail_read show the class once it is set (#37).
    • mailmind replay prints counts only: classes per day, the wakes a rule would raise, and a score histogram. [wake] holds the rule (#38).
    • Wake queue (schema v3). mail_wakes and mail_wakes_ack are registered only when [wake] is set. Only mail received in the last max_age_hours can wake (#39).
    • mail_people is paged, leaves out the owner's addresses, and has shorter rows (#34).

    Upgrade

    Without [assess] and [wake], behaviour matches 0.2.1. Nothing leaves the host and the tool list is the same. The store upgrades to schema v3 in place when sync starts. Get each mailbox owner's consent before you set [assess], and record a week of mailmind replay output before you set [wake].

    Downloads
  • v0.2.1 1f5916e965

    0.2.1 Stable

    svc-agent-writer released this 2026-10-31 05:06:34 +00:00 | 202 commits to main since this release

    No known key found for this signature in database

    A fix release on top of 0.2.0. Deploy 0.2.1 rather than 0.2.0.

    Image

    git.groupthink.asia/dev/imap-mailmind-mcp:0.2.1@sha256:ba458a2a10f3743758b43cc30e98dc07543be71a1b6c6607a5f91bb8f84ba5e0 (linux/amd64, read from the registry manifest; pushed 2026-10-31).

    Fixed

    • A backfill no longer stalls on a FETCH response the client cannot parse (#32). An unescaped quote inside an iCloud ENVELOPE or BODYSTRUCTURE string made imapclient refuse the whole batch. Each pass then restarted at that batch, so no newer mail in the mailbox was mirrored.
      • A failed batch is now probed with FLAGS only. If the probe fails too, the error stands and nothing is skipped.
      • Otherwise the batch is halved until each bad message is alone, and that message is mirrored from its raw bytes. It keeps its headers, body text and attachment list.
      • A message that cannot be read even that way is skipped. Logs carry counts only.
      • On an affected instance, the first 0.2.1 pass gets past the stuck batch and mirrors the newer mail.

    Everything in the 0.2.0 notes, including the upgrade notes from 0.1.x, applies.

    Downloads