]> git.r.bdr.sh - rbdr/olden-mail/commitdiff
Trim after replace
authorRuben Beltran del Rio <redacted>
Mon, 27 Jan 2025 21:41:16 +0000 (22:41 +0100)
committerRuben Beltran del Rio <redacted>
Mon, 27 Jan 2025 21:41:16 +0000 (22:41 +0100)
src/middleware/find_mailboxes_compatibility.rs

index a9318f9b9e4e6d2d478a9c54b56194b309410815..7c5cd9200e48f132d80ff4de20a21b78deee2226 100644 (file)
@@ -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"));
                     }
                 }