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();