This release is mostly about storage. In managed mode, each user's mail, contacts, calendar, and settings now live in their own SQLite database, separate from sign-in and administration data. Existing managed installations convert automatically on the first start. Open and personal installations keep working as before.
Per-user storage in managed mode
- Each user has their own database. The central database keeps users, sign-in, sessions, security settings, and mailbox credentials.
- User data is separated at the file level, and each user database rejects records that belong to someone else.
- One busy mailbox no longer slows everyone down: sync, search indexing, retention, and cleanup work per user.
- Deleting a user removes their database once their pending work has finished.
- Startup upgrades every user database to the current version, and refuses databases written by a newer release.
Automatic conversion
- On the first start in managed mode, an existing shared database is checked, copied, verified, and replaced in place, keeping the same
GOFER_DB_PATH. On my installation (about 96,000 messages, 3 GB) it takes about six minutes. - The original database is kept as
<database>.sharedso you can roll back. - If the conversion fails, the original is put back unchanged. If it's interrupted, it resumes on the next start. Failures caused by the database's contents are reported immediately on later starts, until the database or Gofer changes.
- Open and personal installations can switch to managed mode too. The existing profile becomes a regular user and keeps its mailboxes, and setup creates a separate administrator.
- Set
GOFER_PREVENT_STORAGE_CONVERSION=trueto make managed mode refuse to start instead of converting, for example while automatic updates are enabled. - New
gofer storage inspectandgofer storage migratecommands check a database or convert it into a separate file.
Other fixes (all modes)
- Mail writes and search-index updates are now atomic.
- Mail reads no longer exhaust the database connection pool.
- Messages without a Message-ID no longer break conversation threading.
Before upgrading
- Open and personal mode: nothing changes. The database upgrades automatically from schema 105 to 107 on first launch.
- Managed mode: the first start converts your database, and this is one-way. Before upgrading:
- Back up the complete data directory, including the database,
secret.key, and theaccountsdirectory. - Have free space for about twice the database size.
- If
GOFER_DB_PATHis relative, start Gofer from the same working directory as before.
- Back up the complete data directory, including the database,
- To roll back, restore
<database>.sharedand run a pre-0.5.0 release. Changes made after the conversion are lost. The README has the details.
Still pending
- Gmail and Outlook still require your own OAuth app credentials. I plan to remove that requirement after researching public OAuth setup and completing the necessary provider verification.
- Creating or editing recurring meetings with guests or online meeting links is not supported yet.
- Existing Google Meet conferences cannot be removed in Gofer, Teams meetings cannot be disabled, and conference providers cannot be changed.
- CalDAV invitation delivery depends on server scheduling support or the account's mail-sending configuration.
- Per-user storage can't be converted back into a single shared database.
Gofer remains pre-1.0. I'm actively using and improving it, but please keep backups and test your setup before relying on it for anything critical.