summaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/show.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cmd/show.rs b/src/cmd/show.rs
index 442eb21..b100d25 100644
--- a/src/cmd/show.rs
+++ b/src/cmd/show.rs
@@ -11,9 +11,8 @@ pub fn show(
if let Some(path) = ms.maildir_path.read().unwrap().clone() {
let md = open_submaildir(path, &folder);
- md.add_flags(&mid, "S").map_err(varlink::map_context!())?;
-
if let Some(mut mail) = md.find(&mid) {
+ md.add_flags(&mid, "S").map_err(varlink::map_context!())?;
let mail2 = parsed_mail_to_mail(mail.parsed().unwrap()).unwrap();
call.reply(mail2)