Module deltachat::imex

source Β·
Expand description

Β§Import/export module.

Modules§

  • key_transfer πŸ”’
    Key transfer via Autocrypt Setup Message.
  • transfer πŸ”’
    Transfer a backup to an other device.

Structs§

  • Provide or send a backup of this device.
  • ProgressReader πŸ”’
    Reader that emits progress events as bytes are read from it.
  • ProgressWriter πŸ”’
    Writer that emits progress events as bytes are written into it.

Enums§

Constants§

Functions§

  • Sets Config::DeleteServerAfter to β€œnever” 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 DeleteServerAfter set if necessary.
  • Continue key transfer via Autocrypt Setup Message.
  • export_backup πŸ”’
    Exports the database to a separate file with the given passphrase.
  • Exports the database and blobs into a stream.
  • export_database πŸ”’
    Exports the database to dest, encrypted using passphrase.
  • Returns the exported key file name inside dir.
  • export_self_keys πŸ”’
  • 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.
  • imex_inner πŸ”’
  • import_backup πŸ”’
    Imports backup into the currently open database.
  • Imports backup by reading a tar file from a stream.
  • Imports secret key from a file.
  • import_self_keys πŸ”’
    Imports secret keys from the provided file or directory.
  • Initiates key transfer via Autocrypt Setup Message.
  • set_self_key πŸ”’