email/email/message/move/mod.rs
1#[cfg(feature = "imap")]
2pub mod imap;
3#[cfg(feature = "maildir")]
4pub mod maildir;
5#[cfg(feature = "notmuch")]
6pub mod notmuch;
7
8use async_trait::async_trait;
9
10use crate::{envelope::Id, AnyResult};
11
12#[async_trait]
13pub trait MoveMessages: Send + Sync {
14 /// Move emails from the given folder to the given folder matching
15 /// the given id.
16 async fn move_messages(&self, from_folder: &str, to_folder: &str, id: &Id) -> AnyResult<()>;
17}