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
16
17
#[cfg(feature = "imap")]
pub mod imap;
#[cfg(feature = "maildir")]
pub mod maildir;

use async_trait::async_trait;

use crate::AnyResult;

#[async_trait]
pub trait ExpungeFolder: Send + Sync {
    /// Expunge the given folder.
    ///
    /// The concept is similar to the IMAP expunge: it definitely
    /// deletes messages with [`Flag::Deleted`](crate::email::Flag).
    async fn expunge_folder(&self, folder: &str) -> AnyResult<()>;
}