]> dgit.raspbian.org Git - dovecot.git/commitdiff
[PATCH 2/5] imap: Recreate multiplex ostream side channel after unhibernation
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 1 May 2026 17:40:17 +0000 (17:40 +0000)
committerNoah Meyerhans <noahm@debian.org>
Wed, 16 Sep 2026 19:06:35 +0000 (15:06 -0400)
This will be needed by the following changes to send dict_reset commands via
the side channel.

Gbp-Pq: Name 0002-imap-Recreate-multiplex-ostream-side-channel-after-u.patch

src/imap/imap-state.c

index 3736296bea05466ac38bb5b24a927c5b3a66f2ee..fbd383d9de256662afcf77772ddf1bedbd74e7dc 100644 (file)
@@ -723,6 +723,13 @@ import_state_compress(struct client *client, const unsigned char *data,
                *error_r = t_strdup_printf("Unknown COMPRESS handler %s", name);
                return 0;
        }
+       /* Recreate the side channel that cmd-compress would have created in
+          the previous (now-exited) imap process. It is used to forward
+          dict_reset commands back to the imap-login proxy after every tagged
+          reply. */
+       if (client->multiplex_output != NULL &&
+           client->side_channel_output == NULL)
+               client_create_side_channel_output(client);
        return p - data;
 }