Repository navigation
v0.19.0: storage efficiency, web search fixes, run a filter on existing mail
Storage
- The per-user search index stores no message text and keeps no term
vectors. On the measured mix it falls to 0.07x to 0.11x of its v0.18
size. A quoted phrase now matches all of its words in any order. - An account with no mail creates no per-user files. Per-user SQLite
databases use 1 KiB pages and a bounded write-ahead log; new databases
use auto_vacuum, so deleted mail gives space back. - Blobs move to a two-level directory layout
({2 hex}/{2 hex}/{sha256}), and per-user databases and indexes are
spread over fan-out directories. Existing files are moved by a
background pass after start; blobs not yet moved are still read. - /admin (global admins) and /metrics show disk used per component:
Pebble, Raft log, Raft snapshots, blobs, SQLite, search index and
spool. /metrics also shows Pebble's tables and write-ahead log
separately. - Startup and /admin warn when free inodes fall below
storage.min_free_inodes (default 100,000). - Optional zstd compression of message bodies (storage.compress_blobs,
off by default). On the measured mix it saves 53% to 54% of blob
space but makes large-message fetches 31% to 77% slower, so it is not
on by default. docs/storage.md. - Fewer files are held open: the number of open search indexes is
bounded by storage.max_open_search_indexes (default 128). - An accepted message logs at most one INFO line.
- docs/storage.md gives disk per message, per account and sizing
guidance from measured figures (macOS APFS; Linux ext4 figures are
still to come).
Web search
- Every word in a search must match.
- A search Bleve cannot parse is retried as plain words instead of
failing; a search that still fails says so. - Results show the folder each message is in, and contacts and events
no longer appear in mail results. - Results can be selected and moved, flagged, tagged, archived or
deleted from the results page. "Select all" acts on up to the first
200 results; deleting all results asks for confirmation. - IMAP SEARCH TEXT matches the words given, without query syntax.
- docs/searching-mail.md describes what search does.
Filters
- A filter can be previewed against a folder and then run on the mail
already in it, from the filter's page. A run checks at most the
newest 5,000 messages and changes at most 1,000, and reports what it
did. Forwarding never runs on existing mail; delete moves to Trash.
Preview replaces the Test button. - Bulk actions are limited to 1,000 messages per request, and a move
must target one of the user's own folders.
Load testing
- loadgen bench and make bench measure throughput, latency, startup,
memory, Raft writes and fsyncs per delivered message, and fetch
latency over IMAP, POP3 and the web. report-compare gates figures
with at least 100 samples. loadgen soak and make soak check that disk
use stays bounded under deletes, moves and expunges.
docs/load-testing.md, docs/performance.md.
Upgrade notes
- Downgrade is not possible. After v0.19.0 has started on a data
directory, v0.18 and older cannot find moved blobs or per-user
indexes. Take a backup of the data directory before upgrading.
There is no tool to move files back. - The first start rebuilds every per-user search index to the new
mapping before any listener opens. The server accepts no
connections (SMTP, IMAP, POP3, web) until the rebuild finishes; its
progress is logged. Plan the upgrade for a quiet period. - New config keys: storage.compress_blobs, storage.min_free_inodes,
storage.max_open_search_indexes. Older binaries refuse a config file
that sets them. Do not set storage.compress_blobs while any node runs
an older version: an older binary cannot read a compressed blob. - Existing SQLite databases keep their auto_vacuum setting; only new
databases use it.
Full notes: prds/active/prd-1.0-criteria.md, prds/done/prd-web-search-fixes.md,
prds/done/prd-run-filter-on-existing-mail.md and prds/verification.md.