-
Mail Mind 0.10.0 Stable
released this
2026-11-02 00:02:08 +00:00 | 87 commits to main since this releaseRename the repository and distribution to
mail-mind-mcp, and Python imports tomail_mind_mcp. No old-module alias is shipped. CLImailmind, 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
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
Source code (ZIP)
-
0.8.1 Stable
released this
2026-11-01 21:12:32 +00:00 | 101 commits to main since this releaseSemantic search, hybrid search and
similar_tostay fast with anaccountfilter (#102).Image:
git.groupthink.asia/dev/imap-mailmind-mcp:0.8.1@sha256:0f454874b77e20786ba98e5cd920ed1814021e2824a8916da237efed8b8d584b(linux/amd64, configsha256:4cc5ee46fc49…).Fixed
- Vector scans with
account(#102, #107). Withaccountset, 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 withaccountfell from about 20.8 s to about 1.0 s, the cost of an unfiltered scan. Results do not change. scripts/bench_search.py --semantictimes 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
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- Vector scans with
-
0.8.0 Stable
released this
2026-11-01 12:29:10 +00:00 | 106 commits to main since this releaseAttachment 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, configsha256: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_tocompares against every vector.mail_statusshowsattachment_chunks=N.
- The embedder cuts each attachment's text into chunks of 512 tokens with the pinned tokenizer, from the start, at most
- Attachment flags (#87, #100). Local rules over stored attachment text mark a message
invoice,deadline,contractorform. The flags are advisory.mail_searchtakes anattachment_flagfilter.[wake] attachment_boost(0..1, default 0) adds to the wake score of a message flaggedinvoiceordeadline. The per-thread and daily caps still apply.mailmind replayadds per-flag columns andboosted, the wakes that reach the threshold only through the boost.--attachment-boosttries another value.- The Jev payload does not change. No attachment text goes to Jev.
- Triage confidence.
mail_readshowstriage: <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 withsender. Output does not change.
Known issues
- Semantic search, hybrid search and
similar_towith anaccountfilter 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
apicontainer 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_chunksand[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
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- Attachment text in semantic search (#79, #99). Needs both
-
0.7.0 Stable
released this
2026-11-01 08:41:14 +00:00 | 118 commits to main since this releaseOne 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, configsha256:1bd005f589c4…).Added
mail_attachment(#74, #93). Read scope. It returns the text of one attachment by itspartnumber frommail_read, with file, type, size and status, bounded bymax_charsand wrapped as untrusted data.- With
[attachments]absent, it answersunsupported. - An unknown part, or a part with no text, answers
not_foundwith its status.
- With
- 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_searchshows it once, in every mode. Its snippet line ends withcopies=N, andtotalcounts messages. The row shown is the copy in an inbox, else the lowest row id, among the rows that pass the filters.similar_toleaves out every copy of its source.mail_people,mail_evidenceandmail_triagecount a message once.mail_threadjoins 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_readnumbers its attachment list. Each line readsN file type size status. The status is the stored one from ADR 0007 §4,pendingbefore the backlog reaches the part, oroffwithout[attachments]. An agent prompt that parsed the oldname (type, size)form needs a change.mail_searchoutput has one row per message, as above. A store without copies gives the same output as 0.6.0./healthzand/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
/healthztimeouts can go back to the HTTP probes in the base. Check first, in the pod, that/healthzanswers in under 0.1 s.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
0.6.0 Stable
released this
2026-11-01 05:32:47 +00:00 | 130 commits to main since this releaseAttachment 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, configsha256: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_searchthen 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 isunsupported. - 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,failedortimeout. mail_statusshowsattachments=N attachment_backlog=Mper account.- The README "Attachment size" section lists every limit and the memory measured per attachment shape.
- 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
- Evidence token and
mail_evidence(ADR 0008, #84). Scopes now nest:evidenceis inread, andreadis inwrite.- An evidence token reaches
mail_evidence,mail_people,mail_statusandmail_changesonly, never a body. mail_evidencereturns 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=trueaddsfrom | to | ccto each add row, addresses only.
- An evidence token reaches
- 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_triagereturns inbox counts by triage class and links the panel atui://mailmind/triage.html.- The panel reads rows through
mail_triage_rows, an app-only tool, and opens a message throughmail_read. It starts no write and loads nothing from outside. mail_triageandmail_triage_rowstake the read scope. The evidence token reaches neither.
Changed
- Schema v7. The search index gains an
attached_textcolumn, and a newattachment_texttable 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_triageandmail_triage_rowsto 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. Seeconfig.example.toml.- A child can use up to 512 MiB in the
synccontainer, one at a time. The basesyncmemory limit of 768Mi does not count it. Raise the limit in the overlay when[attachments]is set, more so when[embed]is set too.
- A child can use up to 512 MiB in the
- To issue an evidence token: run
mailmind token --out evidence.token, add it to the Secret asevidence.token, and setevidence_token_file. A Secret key that ends in.tokenreaches theapicontainer only. Issue it only to a consumer such as peoplemind-mcp.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- Attachment text (ADR 0007, #82, #83). Optional, on only with
-
0.5.1 Stable
released this
2026-11-01 00:37:16 +00:00 | 151 commits to main since this releaseJMAP 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, configsha256: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/importin Drafts, with$draftand$seen. It is never sent. Drafts needfrom_addresson the account. - A flag change and a move are
Email/setpatches withifInState. A change made on the server meanwhile fails the action withconflict, 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
$draftand its blob id. - A read-only token refuses every write with
unsupported.EmailSubmissionis never called.
- A draft is uploaded and created with
- iOS flag colours (#68).
mail_flagtakescolor: red, orange, yellow, green, blue, purple or grey.- A colour sets
\Flaggedand Apple's$MailFlagBitkeywords, as iOS Mail stores them. Clearing\Flaggedclears 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_searchgains aflag_colorfilter. - On IMAP, a mailbox that keeps no keywords refuses a colour with
unsupported.
- A colour sets
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_addressfor drafts.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- JMAP writes (#57). A JMAP account now applies the outbox actions, under every rule of ADR 0004:
-
0.5.0 Stable
released this
2026-10-31 23:57:26 +00:00 | 157 commits to main since this releasePluggable mail sources, starting with JMAP and push (ADR 0006).
Image:
git.groupthink.asia/dev/imap-mailmind-mcp:0.5.0@sha256:44b74f8d2dd53e767c6fbbccb73f22fd6c0e9ebe139f1d1b6ef7833fe8f9869e(linux/amd64, configsha256: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 withunsupporteduntil #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.
- Each pass reads every mailbox, backfills newest first, and then reads deltas with
- JMAP push (#56). An EventSource stream wakes the sync seconds after mail arrives in any mailbox.
sync.idle = falseturns it off. The poll interval stays as the fallback. - A Stalwart integration target (#63).
make test-stalwarttests 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
movechange. v6 adds per-account source state. Thesyncworker upgrades the store on start. - Ids. The ids that 0.4.0 issued still resolve.
- The IMAP source sits behind a
MailSourceseam (#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 withsource = "jmap",session_urlandcredential_file. Seeconfig.example.toml.
Decisions
- ADR 0006: pluggable mail sources, and JMAP with push (#60).
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- A JMAP source (#55). An account with
-
0.4.0 Stable
released this
2026-10-31 13:41:47 +00:00 | 173 commits to main since this releaseLocal semantic search (ADR 0005). Nothing leaves the host.
Image:
git.groupthink.asia/dev/imap-mailmind-mcp:0.4.0@sha256:eae961e902a66a151fd02ece76b047814008b466525402d8d21854eddba61eb7(linux/amd64, configsha256:f4c26c3de67c…).Added
-
Semantic search (#44, #48), when
[embed]is set.mail_searchgains: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
apiloads 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
embedthread insyncstores onebge-small-en-v1.5int8 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_statusandmailmind checkreport the embedder. -
aliaseson an account (#41): other addresses the owner writes from.mail_peopleleaves 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_secondsstays as the fallback. - Schema v4 adds the
embeddingstable. Thesyncworker upgrades the store on start. - Memory limits. The base
syncandapilimits 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, addaliases = [...]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
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
-
imap-mailmind-mcp 0.3.0 Stable
released this
2026-10-31 12:24:54 +00:00 | 188 commits to main since this releasePhase 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 defaultheadersmode sends no body text. The assessor runs as a thread in thesyncprocess, and the key reachessynconly (#36).mail_searchgains atriagefilter. Rows andmail_readshow the class once it is set (#37).mailmind replayprints 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_wakesandmail_wakes_ackare registered only when[wake]is set. Only mail received in the lastmax_age_hourscan wake (#39). mail_peopleis 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 whensyncstarts. Get each mailbox owner's consent before you set[assess], and record a week ofmailmind replayoutput before you set[wake].Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
0.2.1 Stable
released this
2026-10-31 05:06:34 +00:00 | 202 commits to main since this releaseA 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
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- 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.