The file format

A JSON file: how it is locked outside, and the JSON of the whole app inside.

An export is a JSON file. Its outer part says how it is locked; its content, once opened, is JSON again.

01 · The outer JSON
{ "format": "opensolr-mail-export", "v": 2, "kdf": "PBKDF2WithHmacSHA256", "iter": 310000, "salt": "<16 bytes, base64>", "nonce": "<8 bytes, base64>", "segment": 1048576, "data": ["<piece 0, base64>", "<piece 1, base64>", …] }
  • data holds the encrypted pieces in order, each an AES-256-GCM ciphertext with its 16-byte tag at the end.
  • The nonce of piece n is nonce followed by n as 4 bytes, highest byte first.
  • The authenticated data of piece n is the text opensolr-mail-export:n:more, or opensolr-mail-export:n:last for the final piece.
  • The pieces put together are the content, UTF-8 JSON.
02 · The content
{ "app_version": "1.20.3", "exported_at": 1796415000000, "prefs": { "<settings file>": { "<key>": {"t": "s", "v": "text"}, "<key>": {"t": "sealed", "v": "a sign-in, open"}, … }, … }, "files": [ {"path": "databases/mail.db", "chunks": ["<256 KiB, base64>", …]}, … ] }
FieldWhat it holds
prefsEvery settings file of the app, by name, with every value and its type: s text, b true or false, i and l whole numbers, f a decimal number, ss a list of texts, sealed a value the phone keeps sealed with its key store, here open, sealed again on import.
filesEvery other file, its path from the app’s data folder and its bytes in pieces of 256 KiB, base64.
app_versionThe version of the app that made the file.
exported_atWhen it was made, in milliseconds since 1970, UTC.

The code is open source: data/Transfer.kt in the app’s repository. See Open source.

Opensolr Mail is open source and MIT licensed. Questions about your Opensolr account, index or plan go to opensolr.com/contact; questions about the app itself belong on GitHub.

Opensolr Mail Documentation