email-lib 0.27.0

Cross-platform, asynchronous Rust library to manage emails
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[cfg(feature = "imap")]
pub mod imap;

use async_trait::async_trait;

use crate::AnyResult;

#[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) -> AnyResult<()>;
}