]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap: Don't try to hibernate when COMPRESS is enabled
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 30 May 2023 08:12:18 +0000 (11:12 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 30 May 2023 08:21:33 +0000 (11:21 +0300)
It doesn't work properly. Broken by 5f27e25c64555dcaae6cb00c479cd05bc2638081

src/imap/imap-state.c

index 2298bafc9fba6a9348f30241a1265d82e4a1027b..7e611641a6d8348dbb745f68513fc2027f3b87d0 100644 (file)
@@ -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,