From: Ruben Beltran del Rio Date: Mon, 27 Jan 2025 21:41:16 +0000 (+0100) Subject: Trim after replace X-Git-Tag: 1.1.0~7 X-Git-Url: https://git.r.bdr.sh/rbdr/olden-mail/commitdiff_plain/92529ff337c51c653ab9efc47e1250e3f5dfb478 Trim after replace --- diff --git a/src/middleware/find_mailboxes_compatibility.rs b/src/middleware/find_mailboxes_compatibility.rs index a9318f9..7c5cd92 100644 --- a/src/middleware/find_mailboxes_compatibility.rs +++ b/src/middleware/find_mailboxes_compatibility.rs @@ -52,8 +52,8 @@ impl Middleware for FindMailboxesCompatibility { if line.starts_with("* LIST") { if let Some(last_slash_pos) = line.rfind('/') { let mailbox_name = line[(last_slash_pos + 1)..] - .trim() - .replace('"', ""); + .replace('"', "") + .trim(); return Some(format!("* MAILBOX {mailbox_name}\r")); } }