use std::path::PathBuf; use maildir::Maildir; mod add_folder; mod count; mod folders; mod list; mod move_mail; mod raw; mod read; mod remove; pub use add_folder::add_folder; pub use count::count; pub use folders::folders; pub use list::list; pub use move_mail::move_mail; pub use raw::raw; pub use read::read; pub use remove::remove; pub fn open_submaildir(mut path: PathBuf, sub: &str) -> Maildir { if !sub.is_empty() { path.push(String::from(".") + sub); } Maildir::from(path) }