From ac75c1d37af6c2814c246f2b217f61a951261c5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20DOUIN?= Date: Sun, 19 Sep 2021 16:48:09 +0200 Subject: [PATCH] review move command --- src/domain/msg/handler.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/domain/msg/handler.rs b/src/domain/msg/handler.rs index 164268af..05fdb338 100644 --- a/src/domain/msg/handler.rs +++ b/src/domain/msg/handler.rs @@ -146,7 +146,7 @@ pub fn attachments( uid: &str, mbox: Option<&str>, @@ -268,7 +268,8 @@ pub fn mailto( +/// Move the given message UID from the selected mailbox to the targetted mailbox. +pub fn move_( uid: &str, mbox: Option<&str>, output: &OutputService, @@ -279,9 +280,8 @@ pub fn move_( // create the msg in the target-msgbox msg.flags.insert(Flag::Seen); imap.append_msg(&target, &mut msg)?; - debug!("message {} successfully moved to folder `{}`", uid, target); output.print(format!( - "Message {} successfully moved to folder `{}`", + r#"Message {} successfully moved to folder "{}""#, uid, target ))?; // delete the msg in the old mailbox