When trying to APPEND a message with DEFLATE active which would cause user's quota to be exceeded, there are a bunch of errors in the console about inflate failing:
[2024-08-04 09:55:31.010] DEBUG[42492]: net_imap.c:4756 handle_client: 0x7f74fcd3c5d0 => 25 append "INBOX" (encrypted) "05-Jun-2024 07:54:35 -0400" {8222845+}
[2024-08-04 09:55:31.011] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 5581 bytes
[2024-08-04 09:55:31.012] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.012] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.012] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 2772 bytes
[2024-08-04 09:55:31.013] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.013] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.013] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8031 bytes
[2024-08-04 09:55:31.014] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.014] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 4864 bytes
[2024-08-04 09:55:31.014] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 3328 bytes
[2024-08-04 09:55:31.014] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.014] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.014] ERROR[42493]: io_compress.c:122 decompress_and_deliver: inflate failed: buffer error
[2024-08-04 09:55:31.015] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.015] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.015] ERROR[42493]: io_compress.c:122 decompress_and_deliver: inflate failed: buffer error
[2024-08-04 09:55:31.015] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.015] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.015] ERROR[42493]: io_compress.c:122 decompress_and_deliver: inflate failed: buffer error
[2024-08-04 09:55:31.016] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.016] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.016] ERROR[42493]: io_compress.c:122 decompress_and_deliver: inflate failed: buffer error
[2024-08-04 09:55:31.017] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.017] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.017] ERROR[42493]: io_compress.c:122 decompress_and_deliver: inflate failed: buffer error
[2024-08-04 09:55:31.017] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.017] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.017] ERROR[42493]: io_compress.c:122 decompress_and_deliver: inflate failed: buffer error
[2024-08-04 09:55:31.018] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.018] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.018] ERROR[42493]: io_compress.c:122 decompress_and_deliver: inflate failed: buffer error
[2024-08-04 09:55:31.019] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.019] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.019] ERROR[42493]: io_compress.c:122 decompress_and_deliver: inflate failed: buffer error
[2024-08-04 09:55:31.019] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.019] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.019] ERROR[42493]: io_compress.c:122 decompress_and_deliver: inflate failed: buffer error
[2024-08-04 09:55:31.020] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.020] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.020] ERROR[42493]: io_compress.c:122 decompress_and_deliver: inflate failed: buffer error
[2024-08-04 09:55:31.023] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.023] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 2471 bytes
[2024-08-04 09:55:31.023] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.023] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 6607 bytes
[2024-08-04 09:55:31.023] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.023] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 2488 bytes
[2024-08-04 09:55:31.024] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.024] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 4818 bytes
[2024-08-04 09:55:31.024] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.024] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.024] ERROR[42493]: io_compress.c:122 decompress_and_deliver: inflate failed: buffer error
[2024-08-04 09:55:31.025] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.025] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.025] ERROR[42493]: io_compress.c:122 decompress_and_deliver: inflate failed: buffer error
[2024-08-04 09:55:31.025] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.026] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.026] ERROR[42493]: io_compress.c:122 decompress_and_deliver: inflate failed: buffer error
[2024-08-04 09:55:31.026] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.027] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
...
[2024-08-04 09:55:31.466] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.466] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.467] ERROR[42493]: io_compress.c:122 decompress_and_deliver: inflate failed: buffer error
[2024-08-04 09:55:31.468] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.468] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 1436 bytes
[2024-08-04 09:55:31.468] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 6756 bytes
[2024-08-04 09:55:31.469] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.469] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 4140 bytes
[2024-08-04 09:55:31.469] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 4052 bytes
[2024-08-04 09:55:31.470] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.470] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 6839 bytes
[2024-08-04 09:55:31.470] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 1353 bytes
[2024-08-04 09:55:31.471] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.471] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 1412 bytes
[2024-08-04 09:55:31.472] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 6780 bytes
[2024-08-04 09:55:31.473] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.473] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.473] ERROR[42493]: io_compress.c:122 decompress_and_deliver: inflate failed: buffer error
[2024-08-04 09:55:31.473] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.474] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.474] ERROR[42493]: io_compress.c:122 decompress_and_deliver: inflate failed: buffer error
[2024-08-04 09:55:31.474] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.474] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.474] ERROR[42493]: io_compress.c:122 decompress_and_deliver: inflate failed: buffer error
[2024-08-04 09:55:31.475] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.475] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.475] ERROR[42493]: io_compress.c:122 decompress_and_deliver: inflate failed: buffer error
[2024-08-04 09:55:31.475] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.475] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.475] ERROR[42493]: io_compress.c:122 decompress_and_deliver: inflate failed: buffer error
[2024-08-04 09:55:31.476] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.476] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.476] ERROR[42493]: io_compress.c:122 decompress_and_deliver: inflate failed: buffer error
[2024-08-04 09:55:31.477] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 8192 bytes
[2024-08-04 09:55:31.477] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 6269 bytes
[2024-08-04 09:55:31.477] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 2 bytes
[2024-08-04 09:55:31.477] DEBUG[42492]: net_imap.c:2551 handle_append: Discarded 8222847 bytes
[2024-08-04 09:55:31.477] DEBUG[42492]: net_imap.c:2552 handle_append: 0x7f74fcd3c5d0 <= 25 NO [OVERQUOTA] Insufficient quota remaining
[2024-08-04 09:55:31.477] DEBUG[42492]: net_imap.c:2410 handle_append: 1 message appended so far, will there be more?
[2024-08-04 09:55:31.477] DEBUG[42493]: io_compress.c:86 compress_and_send: Deflated to 43 bytes
[2024-08-04 09:55:31.493] DEBUG[42493]: io_compress.c:127 decompress_and_deliver: Inflated to 9 bytes
[2024-08-04 09:55:31.493] DEBUG[42492]: net_imap.c:2428 handle_append: 0x7f74fcd3c5d0 <= 25 NO [CLIENTBUG] Missing message literal size
[2024-08-04 09:55:31.493] DEBUG[42492]: net_imap.c:4706 imap_process: IDLE command returned -1
Technically, nothing has actually gone wrong here, this is as intended since quota was exceeded. However, we should not be making calls that fail in that manner or logging errors as such in that case. Additionally, it appears the end of the append was not properly detected since it starts interpreting remaining characters as another APPEND, which probably is an actual bug. Not super critical since we immediately disconnect when this happens to prevent an unwanted operation due to lost synchronization.
You must be