1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use async_trait::async_trait;

use crate::Result;

#[cfg(feature = "imap")]
pub mod imap;

#[async_trait]
pub trait PurgeFolder: Send + Sync {
    /// Purge the given folder.
    ///
    /// Manipulate with caution: all emails contained in the given
    /// folder are definitely deleted.
    async fn purge_folder(&self, folder: &str) -> Result<()>;
}