From: Timo Sirainen Date: Tue, 30 May 2023 08:12:18 +0000 (+0300) Subject: imap: Don't try to hibernate when COMPRESS is enabled X-Git-Tag: 2.4.0~2724 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=192370bc7ddfa6193aa27e0d78bbd2bd6afbf491;p=thirdparty%2Fdovecot%2Fcore.git imap: Don't try to hibernate when COMPRESS is enabled It doesn't work properly. Broken by 5f27e25c64555dcaae6cb00c479cd05bc2638081 --- 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,