diff options
-rw-r--r-- | Cargo.lock | 2 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/cmd/remove.rs | 3 |
3 files changed, 4 insertions, 3 deletions
@@ -206,7 +206,7 @@ dependencies = [ [[package]] name = "jwebmail-extract" -version = "0.9.0" +version = "0.9.1" dependencies = [ "base64", "chrono", @@ -1,6 +1,6 @@ [package] name = "jwebmail-extract" -version = "0.9.0" +version = "0.9.1" authors = ["Jannis M. Hoffmann <jannis@fehcom.de>"] edition = "2021" rust-version = "1.80" diff --git a/src/cmd/remove.rs b/src/cmd/remove.rs index 73328a5..991c835 100644 --- a/src/cmd/remove.rs +++ b/src/cmd/remove.rs @@ -9,7 +9,8 @@ pub fn remove( ) -> varlink::Result<()> { if let Some(p) = ms.maildir_path.read().unwrap().clone() { let md = open_submaildir(p, &folder); - md.add_flags(&mid, "T").map_err(varlink::map_context!())?; + + md.delete(&mid).map_err(varlink::map_context!())?; call.reply() } else { |