]> git.r.bdr.sh - rbdr/olden-mail/blobdiff - src/middleware/find_mailboxes_compatibility.rs
Trim the tag
[rbdr/olden-mail] / 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();