Sets Config::BccSelf
(and DeleteServerAfter
to βneverβ in effect) if needed so that new
messages are present on the server after a backup restoration or available for all devices in
multi-device case. NB: Calling this after a backup import isnβt reliable as we can crash in
between, but this is a problem only for old backups, new backups already have BccSelf
set if
necessary.
Continue key transfer via Autocrypt Setup Message.
Exports the database to a separate file with the given passphrase.
Exports the database and blobs into a stream.
Exports the database to dest, encrypted using passphrase.
Returns the exported key file name inside dir
.
Contacts a backup provider and receives the backup from it.
Returns Ok((temp_db_path, temp_path, dest_path)) on success. Unencrypted database can be
written to temp_db_path. The backup can then be written to temp_path. If the backup succeeded,
it can be renamed to dest_path. This guarantees that the backup is complete.
Returns the filename of the backup found (otherwise an error)
Import/export things.
Imports backup into the currently open database.
Imports backup by reading a tar file from a stream.
Imports secret key from a file.
Imports secret keys from the provided file or directory.
Initiates key transfer via Autocrypt Setup Message.