diff options
author | Jannis M. Hoffmann <jannis@fehcom.de> | 2024-12-12 16:42:21 +0100 |
---|---|---|
committer | Jannis M. Hoffmann <jannis@fehcom.de> | 2024-12-12 16:42:21 +0100 |
commit | 7e5eae9fb53e0b47d0988984638a77636fe444fd (patch) | |
tree | 973c36bf52c7da5506916f726949c6897b5060ca /src/cmd/show.rs | |
parent | b26eadcd2612c5d2163efa96678d00d0176bd919 (diff) |
Diffstat (limited to 'src/cmd/show.rs')
-rw-r--r-- | src/cmd/show.rs | 3 |
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) |