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

index ddc12f1181c2fd154a600940354a119a744d27ad..63ed688e17ef3d75331adc8834081ad5949e0df0 100644 (file)
@@ -58,7 +58,7 @@ impl Middleware for FindMailboxesCompatibility {
                 // Transform IMAPv4 "* LIST" lines to IMAPv3 "* MAILBOX"
                 if line.starts_with("* LIST") {
                     if let Some(last_slash_pos) = line.rfind('/') {
-                        let mailbox_name = line[(last_slash_pos + 1)..].trim();
+                        let mailbox_name = line[(last_slash_pos + 2)..].trim();
                         return Some(format!("* MAILBOX {mailbox_name}\r"));
                     }
                 }