From ba29d86226e276bedd1f6f1623d32652df7f3205 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Mon, 27 Jan 2025 22:20:16 +0100 Subject: Trim the tag --- src/middleware/find_mailboxes_compatibility.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(); -- cgit