summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index f9ba899..5598b30 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -69,8 +69,9 @@ fn main() -> Result<()> {
//Mode::Search => cmd::search(&path, &req),
Mode::Move => cmd::move_mail(path, &req),
Mode::Remove => cmd::remove(path, &req),
+ Mode::AddFolder => cmd::add_folder(path, &req),
_ => todo!(),
}?;
- stdout().write(&res).map(|_| ()).map_err(|e| e.into())
+ stdout().write_all(&res).map_err(|e| e.into())
}