1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[cfg(feature = "imap")]
pub mod imap;
#[cfg(feature = "maildir")]
pub mod maildir;
#[cfg(feature = "notmuch")]
pub mod notmuch;

use async_trait::async_trait;

use crate::AnyResult;

#[async_trait]
pub trait AddFolder: Send + Sync {
    /// Create the given folder.
    async fn add_folder(&self, folder: &str) -> AnyResult<()>;
}