diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-01-27 22:20:16 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-01-27 22:20:16 +0100 |
| commit | ba29d86226e276bedd1f6f1623d32652df7f3205 (patch) | |
| tree | fd5ae28838d884413edcae5537813e2a21db01bc /src/middleware | |
| parent | bbacb35a0771b6abffde6c4ca82c977e24a9b259 (diff) | |
Trim the tag
Diffstat (limited to 'src/middleware')
| -rw-r--r-- | src/middleware/find_mailboxes_compatibility.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |