api: add clear_all_relay_storage API

This commit is contained in:
link2xt
2026-04-08 21:55:07 +02:00
parent 8cd06bb785
commit 10ab556d65
4 changed files with 108 additions and 4 deletions

View File

@@ -568,6 +568,15 @@ impl Context {
}
}
/// Requests deletion of all messages from chatmail relays.
///
/// Non-chatmail relays are excluded
/// to avoid accidentally deleting emails
/// from shared inboxes.
pub async fn clear_all_relay_storage(&self) -> Result<()> {
self.scheduler.clear_all_relay_storage().await
}
/// Restarts the IO scheduler if it was running before
/// when it is not running this is an no-op
pub async fn restart_io_if_running(&self) {