summaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/remove.rs3
1 files changed, 2 insertions, 1 deletions
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 {