]> git.r.bdr.sh - rbdr/olden-mail/commitdiff
Read the tag
authorRuben Beltran del Rio <redacted>
Mon, 27 Jan 2025 22:09:46 +0000 (23:09 +0100)
committerRuben Beltran del Rio <redacted>
Mon, 27 Jan 2025 22:09:46 +0000 (23:09 +0100)
src/middleware/find_mailboxes_compatibility.rs

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