summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2024-12-08 17:22:29 +0100
committerJannis M. Hoffmann <jannis@fehcom.de>2024-12-08 17:22:29 +0100
commit671dd9e7a5ea3e30a89fc08389ab115b41a788e9 (patch)
treeaf099e01f07ce0db1074d6ab4fccdc8469780c9f
parentf5b98066b6e474bbe13051ff0a56944a562fc243 (diff)
remove now unlinks the file instead of setting the Trash flag
-rw-r--r--Cargo.lock2
-rw-r--r--Cargo.toml2
-rw-r--r--src/cmd/remove.rs3
3 files changed, 4 insertions, 3 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 663fd6b..7d3a219 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -206,7 +206,7 @@ dependencies = [
[[package]]
name = "jwebmail-extract"
-version = "0.9.0"
+version = "0.9.1"
dependencies = [
"base64",
"chrono",
diff --git a/Cargo.toml b/Cargo.toml
index 2c9acb7..e1a58f3 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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 {