deltachat::imex

Function adjust_bcc_self

source
async fn adjust_bcc_self(context: &Context) -> Result<()>
Expand description

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.