From bc2f64c0ce8148f079167f38ae1c5b52f207c0cc Mon Sep 17 00:00:00 2001 From: link2xt Date: Mon, 23 Sep 2024 12:13:37 +0000 Subject: [PATCH] hack, otherwise decompression gets stuck --- src/imap_stream.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/imap_stream.rs b/src/imap_stream.rs index 0bad554..89142f7 100644 --- a/src/imap_stream.rs +++ b/src/imap_stream.rs @@ -273,6 +273,8 @@ impl Stream for ImapStream { } loop { this.buffer.ensure_capacity(this.decode_needs)?; + this.buffer.ensure_capacity(64 * 1024)?; // FIXME: match the size needed for + // decompression let buf = this.buffer.free_as_mut_slice(); // The buffer should have at least one byte free