From 192370bc7ddfa6193aa27e0d78bbd2bd6afbf491 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 30 May 2023 11:12:18 +0300 Subject: [PATCH] imap: Don't try to hibernate when COMPRESS is enabled It doesn't work properly. Broken by 5f27e25c64555dcaae6cb00c479cd05bc2638081 --- src/imap/imap-state.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/imap/imap-state.c b/src/imap/imap-state.c index 2298bafc9f..7e611641a6 100644 --- a/src/imap/imap-state.c +++ b/src/imap/imap-state.c @@ -257,6 +257,10 @@ int imap_state_export_base(struct client *client, bool internal, *error_r = "NOTIFY not supported currently"; return 0; } + if (client->compress_handler != NULL && internal) { + *error_r = "COMPRESS enabled"; + return 0; + } if (client->mailbox != NULL) { ret = imap_state_export_mailbox(dest, client, -- 2.47.3