internal/

directory
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2026 License: MIT

Directories

Path Synopsis
Package blob stores raw messages by content: each blob is a file named by the hex SHA-256 of its bytes, under <dir>/<first two hex digits>/<sha> (docs/design/storage.md).
Package blob stores raw messages by content: each blob is a file named by the hex SHA-256 of its bytes, under <dir>/<first two hex digits>/<sha> (docs/design/storage.md).
Package calendar reads iCalendar events and expands their occurrences (docs/design/pim.md, Calendars; ADR-0018).
Package calendar reads iCalendar events and expands their occurrences (docs/design/pim.md, Calendars; ADR-0018).
Package compose builds outgoing mail: the rules for replies and forwards (this file) and the message builder (docs/design/send.md).
Package compose builds outgoing mail: the rules for replies and forwards (this file) and the message builder (docs/design/send.md).
Package config resolves where maild keeps its files (docs/design/overview.md#configuration).
Package config resolves where maild keeps its files (docs/design/overview.md#configuration).
Package contentline reads and patches the content lines of vCard (RFC 6350) and iCalendar (RFC 5545) objects.
Package contentline reads and patches the content lines of vCard (RFC 6350) and iCalendar (RFC 5545) objects.
Package davsession scripts the write sessions that are recorded against a provider's servers and replayed in tests (docs/design/testing.md, DAV and Tasks recordings).
Package davsession scripts the write sessions that are recorded against a provider's servers and replayed in tests (docs/design/testing.md, DAV and Tasks recordings).
Package davtest is an in-process CardDAV and CalDAV server for tests, as imapxtest is for IMAP (docs/design/pim.md): memory collections, ETags, sync tokens over a change log, conditional writes, and hooks to change objects as another client would and to make requests fail.
Package davtest is an in-process CardDAV and CalDAV server for tests, as imapxtest is for IMAP (docs/design/pim.md): memory collections, ETags, sync tokens over a change log, conditional writes, and hooks to change objects as another client would and to make requests fail.
Package davx is Frostmail's WebDAV client for CardDAV (RFC 6352) and CalDAV (RFC 4791): discovery, collections, sync-collection (RFC 6578), multiget, and conditional writes of raw objects (ADR-0017).
Package davx is Frostmail's WebDAV client for CardDAV (RFC 6352) and CalDAV (RFC 4791): discovery, collections, sync-collection (RFC 6578), multiget, and conditional writes of raw objects (ADR-0017).
Package dbustest runs a private D-Bus daemon for tests of code that talks to session services (the Secret Service, notifications).
Package dbustest runs a private D-Bus daemon for tests of code that talks to session services (the Secret Service, notifications).
Package devgw serves maild's RPC over a WebSocket on loopback, so the UI can be developed in an ordinary browser against a real maild (docs/design/app.md, Dev and test).
Package devgw serves maild's RPC over a WebSocket on loopback, so the UI can be developed in an ordinary browser against a real maild (docs/design/app.md, Dev and test).
Package discover finds an address's mail servers (docs/design/accounts.md, Discovery): provider profiles, Mozilla autoconfig documents (also served by the ISPDB) and RFC 6186 SRV records.
Package discover finds an address's mail servers (docs/design/accounts.md, Discovery): provider profiles, Mozilla autoconfig documents (also served by the ISPDB) and RFC 6186 SRV records.
Package engine implements the maild API domains over the store; the sync engine joins it in M1 (docs/design/overview.md).
Package engine implements the maild API domains over the store; the sync engine joins it in M1 (docs/design/overview.md).
Package events fans committed events out to subscribed connections and replays the durable log for subscribers that resume (docs/specs/rpc-protocol.md).
Package events fans committed events out to subscribed connections and replays the durable log for subscribers that resume (docs/specs/rpc-protocol.md).
Package graph is Frostmail's client for the part of Microsoft Graph that Microsoft accounts' contacts and calendars need (ADR-0039, ADR-0040; docs/design/pim.md, Microsoft Graph): listing calendars and contact folders, delta rounds, reading events, series and contacts, and turning them into the iCalendar and vCard sources the rest of maild reads.
Package graph is Frostmail's client for the part of Microsoft Graph that Microsoft accounts' contacts and calendars need (ADR-0039, ADR-0040; docs/design/pim.md, Microsoft Graph): listing calendars and contact folders, delta rounds, reading events, series and contacts, and turning them into the iCalendar and vCard sources the rest of maild reads.
Package graphtest is an in-process Microsoft Graph for tests of Graph sync (docs/design/pim.md, Microsoft Graph), as davtest is for DAV: the account's calendars and contact folders in memory, delta rounds with tokens and pages, series read with their exceptions, contact photos, Graph's writes, and hooks that play another client's changes.
Package graphtest is an in-process Microsoft Graph for tests of Graph sync (docs/design/pim.md, Microsoft Graph), as davtest is for DAV: the account's calendars and contact folders in memory, delta rounds with tokens and pages, series read with their exceptions, contact photos, Graph's writes, and hooks that play another client's changes.
Package gtasks is a client of the Google Tasks API (v1) for pimsync (docs/design/pim.md, Tasks): task lists, tasks with their JSON kept as sent, and the writes Frostmail makes.
Package gtasks is a client of the Google Tasks API (v1) for pimsync (docs/design/pim.md, Tasks): task lists, tasks with their JSON kept as sent, and the writes Frostmail makes.
gtaskstest
Package gtaskstest is an in-process Google Tasks API (v1) for tests, as davtest is for DAV (docs/design/pim.md, Testing): task lists and tasks in memory with Google's JSON, paging, updatedMin, hidden and deleted tasks, positions among siblings, a bearer token, and hooks to change tasks as another client would and to make requests fail.
Package gtaskstest is an in-process Google Tasks API (v1) for tests, as davtest is for DAV (docs/design/pim.md, Testing): task lists and tasks in memory with Google's JSON, paging, updatedMin, hidden and deleted tasks, positions among siblings, a bearer token, and hooks to change tasks as another client would and to make requests fail.
Package httprec records HTTP sessions and replays them in tests (docs/design/testing.md, DAV and Tasks recordings), as imapx's trace and replay do for IMAP.
Package httprec records HTTP sessions and replays them in tests (docs/design/testing.md, DAV and Tasks recordings), as imapx's trace and replay do for IMAP.
Package imapx is frostmail's only door to IMAP.
Package imapx is frostmail's only door to IMAP.
imapxtest
Package imapxtest runs go-imap's in-memory IMAP server for unit tests.
Package imapxtest runs go-imap's in-memory IMAP server for unit tests.
replay
Package replay serves a recorded IMAP session back to a client (docs/design/testing.md, transcript replay).
Package replay serves a recorded IMAP session back to a client (docs/design/testing.md, transcript replay).
Package itip reads iTIP messages that arrive in mail (RFC 5546, RFC 6047) and writes the user's answers: the REPLY mailed to an organizer and the PARTSTAT patch of a stored event (ADR-0019; ADR-0018's patches).
Package itip reads iTIP messages that arrive in mail (RFC 5546, RFC 6047) and writes the user's answers: the REPLY mailed to an organizer and the PARTSTAT patch of a stored event (ADR-0019; ADR-0018's patches).
Package lodge serves maild as lodge's mail app on its app socket (docs/specs/lodge-app.md, ADR-0041): /health, the /api WebSocket as caller session, and /content/ for reader pages, parts and whole messages, which lodge-content serves to the reader's frame and to downloads.
Package lodge serves maild as lodge's mail app on its app socket (docs/specs/lodge-app.md, ADR-0041): /health, the /api WebSocket as caller session, and /content/ for reader pages, parts and whole messages, which lodge-content serves to the reader's frame and to downloads.
Package mailgen generates reproducible synthetic mail: threads, MIME variety and flags, for load tests (make mailtest-seed) and the app's fixture data (tools/uifixture).
Package mailgen generates reproducible synthetic mail: threads, MIME variety and flags, for load tests (make mailtest-seed) and the app's fixture data (tools/uifixture).
Package mailsync keeps each account's local store in step with its IMAP server: one actor per account runs the reconcile pass, watches INBOX with IDLE, polls the other mailboxes and fetches bodies on demand (docs/design/sync.md).
Package mailsync keeps each account's local store in step with its IMAP server: one actor per account runs the reconcile pass, watches INBOX with IDLE, polls the other mailboxes and fetches bodies on demand (docs/design/sync.md).
Package mcpserver serves the user's mail to agents over the Model Context Protocol, behind lodge's /mcp/mail (docs/specs/lodge-app.md, /mcp; ADR-0041).
Package mcpserver serves the user's mail to agents over the Model Context Protocol, behind lodge's /mcp/mail (docs/specs/lodge-app.md, /mcp; ADR-0041).
Package mimex parses and normalizes mail messages for frostmail; the x marks it as frostmail's layer over the standard mime packages.
Package mimex parses and normalizes mail messages for frostmail; the x marks it as frostmail's layer over the standard mime packages.
Package notify announces new mail on the desktop (docs/design/desktop.md, Notifications): the texts (notes.go) and, later, the D-Bus sender.
Package notify announces new mail on the desktop (docs/design/desktop.md, Notifications): the texts (notes.go) and, later, the D-Bus sender.
Package oauth signs maild in to OAuth providers (docs/design/accounts.md, Sign-in; ADR-0011): the protocol pieces (protocol.go), provider endpoints, and later the loopback flow and the token manager.
Package oauth signs maild in to OAuth providers (docs/design/accounts.md, Sign-in; ADR-0011): the protocol pieces (protocol.go), provider endpoints, and later the loopback flow and the token manager.
Package pimsync keeps each account's address books, calendars and task lists in step with its servers (docs/design/pim.md, ADR-0017): one loop per account with a service on, beside mail's actor and independent of it, polling every 5 minutes, at once on request and after a local change.
Package pimsync keeps each account's address books, calendars and task lists in step with its servers (docs/design/pim.md, ADR-0017): one loop per account with a service on, beside mail's actor and independent of it, polling every 5 minutes, at once on request and after a local change.
Package providers holds what Frostmail knows about mail providers: their servers, the sign-in kinds they accept, and the quirks the sync engine honors (docs/design/accounts.md, Provider profiles).
Package providers holds what Frostmail knows about mail providers: their servers, the sign-in kinds they accept, and the quirks the sync engine honors (docs/design/accounts.md, Provider profiles).
Package reminders fires calendar reminders when their alarms come due (docs/design/pim.md, Reminders): it records them as fired, tells the app, and, while the app is away, shows desktop notifications.
Package reminders fires calendar reminders when their alarms come due (docs/design/pim.md, Reminders): it records them as fired, tells the app, and, while the app is away, shows desktop notifications.
Package render prepares stored messages for the reader: sanitized HTML whose images are embedded as data: URLs (WebKitGTK does not load the app's mailpart:// scheme inside the reader's frame), inline parts decoded into the parts cache, and remote images fetched only on request (docs/design/rendering.md, ADR-0005).
Package render prepares stored messages for the reader: sanitized HTML whose images are embedded as data: URLs (WebKitGTK does not load the app's mailpart:// scheme inside the reader's frame), inline parts decoded into the parts cache, and remote images fetched only on request (docs/design/rendering.md, ADR-0005).
Package rpcserver serves the maild API on lodge's kit (github.com/frostyard/lodge/kit/jsonrpc): rpc.hello, events.subscribe, a caller per connection and whether the app attends.
Package rpcserver serves the maild API on lodge's kit (github.com/frostyard/lodge/kit/jsonrpc): rpc.hello, events.subscribe, a caller per connection and whether the app attends.
Package rpctest runs a real maild API server (store, broker, views, engine, rpcserver and optionally sync) on a temporary socket, for tests of clients such as mailctl and for end-to-end sync tests.
Package rpctest runs a real maild API server (store, broker, views, engine, rpcserver and optionally sync) on a temporary socket, for tests of clients such as mailctl and for end-to-end sync tests.
Package search parses the search language (docs/specs/search.md) into a Query the store turns into SQL over messages and messages_fts.
Package search parses the search language (docs/specs/search.md) into a Query the store turns into SQL over messages and messages_fts.
Package secrets keeps account credentials out of the database (docs/design/storage.md#credentials): the Secret Service over D-Bus on Linux, a file sealed with DPAPI on Windows, and a plain File for development.
Package secrets keeps account credentials out of the database (docs/design/storage.md#credentials): the Secret Service over D-Bus on Linux, a file sealed with DPAPI on Windows, and a plain File for development.
Package smtpx is frostmail's only door to SMTP: it hands one built message to an account's submission server (docs/design/send.md, Outbox) and says whether a failure is worth retrying.
Package smtpx is frostmail's only door to SMTP: it hands one built message to an account's submission server (docs/design/send.md, Outbox) and says whether a failure is worth retrying.
smtpxtest
Package smtpxtest runs an in-process SMTP submission server for tests of sending: it records accepted messages and can refuse or hold them.
Package smtpxtest runs an in-process SMTP submission server for tests of sending: it records accepted messages and can refuse or hold them.
Package store is maild's SQLite database: migrations, the single writer, the durable event log and the queries (docs/design/storage.md).
Package store is maild's SQLite database: migrations, the single writer, the durable event log and the queries (docs/design/storage.md).
Package unsubscribe works out how a list message can be left and sends RFC 8058 one-click requests (ADR-0027): an HTTPS POST that carries nothing of the user's and never reaches the user's own network.
Package unsubscribe works out how a list message can be left and sends RFC 8058 one-click requests (ADR-0027): an HTTPS POST that carries nothing of the user's and never reaches the user's own network.
Package vcardx reads the fields Frostmail shows from vCards (RFC 2426 version 3.0 and RFC 6350 version 4.0) over internal/contentline, and builds the vCard Add to Contacts creates (docs/design/pim.md).
Package vcardx reads the fields Frostmail shows from vCards (RFC 2426 version 3.0 and RFC 6350 version 4.0) over internal/contentline, and builds the vCard Add to Contacts creates (docs/design/pim.md).
Package view keeps live, ordered message lists for clients (the view domain in docs/specs/rpc-api.md).
Package view keeps live, ordered message lists for clients (the view domain in docs/specs/rpc-api.md).
Package workflowcheck holds the tests that keep the GitHub Actions workflows within frostyard/core ADR-0021: external actions pinned to a full commit SHA, permissions declared at the top, and checkouts that do not keep the token.
Package workflowcheck holds the tests that keep the GitHub Actions workflows within frostyard/core ADR-0021: external actions pinned to a full commit SHA, permissions declared at the top, and checkouts that do not keep the token.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL