]> git.r.bdr.sh - rbdr/olden-mail/commitdiff
Split LINE and not COMMAND
authorRuben Beltran del Rio <redacted>
Mon, 27 Jan 2025 22:14:29 +0000 (23:14 +0100)
committerRuben Beltran del Rio <redacted>
Mon, 27 Jan 2025 22:14:29 +0000 (23:14 +0100)
src/middleware/find_mailboxes_compatibility.rs

index edf5f0694ef5876e6b58f8a1c5aa47ee3b4682de..51d7488b84b45c490a975c3227e20e2fc5449e66 100644 (file)
@@ -57,7 +57,7 @@ impl Middleware for FindMailboxesCompatibility {
                 }
 
                 if line.contains("OK") {
-                    if let Some(tag) = command.split("OK").next() {
+                    if let Some(tag) = line.split("OK").next() {
                         return Some(format!("{} OK MAILBOX Completed.\r", tag.trim()).to_string());
                     }
                 }