]> git.r.bdr.sh - rbdr/olden-mail/commitdiff
Trim the tag
authorRuben Beltran del Rio <redacted>
Mon, 27 Jan 2025 21:20:16 +0000 (22:20 +0100)
committerRuben Beltran del Rio <redacted>
Mon, 27 Jan 2025 21:20:16 +0000 (22:20 +0100)
src/middleware/find_mailboxes_compatibility.rs

index acbab82ca026d8306472d9922517f70f41ba246c..0e4b2cdbcfbfe4e88c5c47bc92204c0571474127 100644 (file)
@@ -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();