From: Ruben Beltran del Rio Date: Mon, 27 Jan 2025 21:20:16 +0000 (+0100) Subject: Trim the tag X-Git-Tag: 1.1.0~12 X-Git-Url: https://git.r.bdr.sh/rbdr/olden-mail/commitdiff_plain/ba29d86226e276bedd1f6f1623d32652df7f3205?ds=inline Trim the tag --- diff --git a/src/middleware/find_mailboxes_compatibility.rs b/src/middleware/find_mailboxes_compatibility.rs index acbab82..0e4b2cd 100644 --- a/src/middleware/find_mailboxes_compatibility.rs +++ b/src/middleware/find_mailboxes_compatibility.rs @@ -22,7 +22,7 @@ impl Middleware for FindMailboxesCompatibility { if command.contains("FIND MAILBOXES /*") { if let Some(tag) = command.split("FIND MAILBOXES /*").next() { // We'll need to convert the LIST to a FIND - self.tags.push(tag.to_string()); + self.tags.push(tag.trim().to_string()); let replacement = format!("{} LIST \"\" \"*\"\r\n", tag.trim()); debug!("### {replacement}"); return replacement.into_bytes();