diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-01-27 22:41:16 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-01-27 22:41:16 +0100 |
| commit | 92529ff337c51c653ab9efc47e1250e3f5dfb478 (patch) | |
| tree | fa24fe608f8b5fe53b2b7ae8a77283f88fe56154 /src/middleware | |
| parent | 866c07d649ed99db1e4e0eec4db213151225681c (diff) | |
Trim after replace
Diffstat (limited to 'src/middleware')
| -rw-r--r-- | src/middleware/find_mailboxes_compatibility.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/middleware/find_mailboxes_compatibility.rs b/src/middleware/find_mailboxes_compatibility.rs index a9318f9..7c5cd92 100644 --- a/src/middleware/find_mailboxes_compatibility.rs +++ b/src/middleware/find_mailboxes_compatibility.rs @@ -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")); } } |