Documentation
¶
Overview ¶
Package config resolves where maild keeps its files (docs/design/overview.md#configuration).
Index ¶
Constants ¶
const AppID = "org.frostyard.Frostmail"
AppID is the reverse-DNS application ID (frostyard/core ADR-0016).
Variables ¶
This section is empty.
Functions ¶
func AppConfigFile ¶ added in v0.2.0
AppConfigFile is the app's own configuration, app.json: $XDG_CONFIG_HOME/frostmail/app.json, under HOME/.config without it. In the Flatpak that is ~/.var/app/org.frostyard.Frostmail/config/frostmail.
func DefaultSocket ¶
DefaultSocket is maild's socket when FROSTMAIL_SOCKET is not set: $XDG_RUNTIME_DIR/frostmail/maild.sock. In the Flatpak (InFlatpak) it is $XDG_RUNTIME_DIR/app/org.frostyard.Frostmail/frostmail/maild.sock: Flatpak shares $XDG_RUNTIME_DIR/app/<id> between every sandbox of the app, and the rest of $XDG_RUNTIME_DIR is private to each sandbox, so the window, maild and mailctl meet only there (docs/adr/0046-the-desktop-flatpak-carries-its-own-maild.md).
Types ¶
type Mode ¶ added in v0.2.0
type Mode string
Mode says which maild a desktop uses: the local one, or the one behind lodge (docs/design/desktop.md, On a maild behind lodge).
func ReadMode ¶ added in v0.2.0
ReadMode reads the mode from the app's app.json at path: lodge when it has a non-empty "lodge" string, else local. A missing file is local; unknown keys are ignored; a file that is not valid JSON, or whose "lodge" is not a string, is an error that names the file. The app writes this file (the Server pane); maild only reads it.
type Paths ¶
type Paths struct {
DataDir string // database and blob store; must be on a local filesystem
CacheDir string // decoded message parts served to the UI
Socket string // the RPC socket (a named pipe on Windows)
DB string // DataDir/frostmail.db
Blobs string // DataDir/blobs
}
Paths are maild's file locations.