diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-01-27 23:09:46 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-01-27 23:09:46 +0100 |
| commit | 39e9898de42f3168542f4f4d2c15c9cf9189d0a7 (patch) | |
| tree | e37309f382ff3e99e6173590953616bc2575a522 /src | |
| parent | 5bc877d3fa9025180020d0b25104cc22333e6252 (diff) | |
Read the tag
Diffstat (limited to 'src')
| -rw-r--r-- | src/middleware/find_mailboxes_compatibility.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/middleware/find_mailboxes_compatibility.rs b/src/middleware/find_mailboxes_compatibility.rs index 42db396..edf5f06 100644 --- a/src/middleware/find_mailboxes_compatibility.rs +++ b/src/middleware/find_mailboxes_compatibility.rs @@ -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()) |