diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-01-27 22:38:27 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-01-27 22:38:27 +0100 |
| commit | 866c07d649ed99db1e4e0eec4db213151225681c (patch) | |
| tree | 5cb23b2774cb139c37d966d31eb5174b0800073a /src/middleware | |
| parent | df07d7b043eaba1f961d22883763ae77b7f68600 (diff) | |
Remove quotes
Diffstat (limited to 'src/middleware')
| -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 2b5df8e..a9318f9 100644 --- a/src/middleware/find_mailboxes_compatibility.rs +++ b/src/middleware/find_mailboxes_compatibility.rs @@ -51,7 +51,9 @@ 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 + 2)..].trim(); + let mailbox_name = line[(last_slash_pos + 1)..] + .trim() + .replace('"', ""); return Some(format!("* MAILBOX {mailbox_name}\r")); } } |