email/folder/purge/
mod.rs

1#[cfg(feature = "imap")]
2pub mod imap;
3
4use async_trait::async_trait;
5
6use crate::AnyResult;
7
8#[async_trait]
9pub trait PurgeFolder: Send + Sync {
10    /// Purge the given folder.
11    ///
12    /// Manipulate with caution: all emails contained in the given
13    /// folder are definitely deleted.
14    async fn purge_folder(&self, folder: &str) -> AnyResult<()>;
15}